File:  [Power 6/32 Unix Tahoe 4.2BSD] / cci / usr / src / usr.bin / bsc / misc / 3270 / inst3280.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Sun Jul 28 12:26:12 2019 UTC (7 years ago) by root
Branches: bsd, MAIN
CVS tags: v121, HEAD
Power 6/32 Unix version 1.21

#include <stdio.h>
/*
 * NAME
 *	connect, disconnect
 *
 * SYNOPSIS
 *	connect(host,dev)
 *	char *host, *dev;
 *	disconnect(host,dev)
 *	char *host, *dev;
 *
 * DESCRIPTION
 *	Installation-supplied exits from bscd
 *	connect - installation connect routine
 *	disconnect - installation disconnect routine
 */

/* connect - installation connect routine */
connect(host,dev)
char *host, *dev;
{
	char garbage;

	printf("Ready to connect to host <%s>.\n",host);
	printf("Press Return to continue or enter 'q' to quit: ");

	if ((garbage=getc(stdin)) != '\n' && garbage != '\r') exit(0);

	return(0);	
}

/* disconnect - installation disconnect routine */
disconnect(host, dev)
char *host, *dev;
{}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.