Annotation of cci/usr/src/usr.bin/bsc/misc/3270/inst3280.c, revision 1.1

1.1     ! root        1: #include <stdio.h>
        !             2: /*
        !             3:  * NAME
        !             4:  *     connect, disconnect
        !             5:  *
        !             6:  * SYNOPSIS
        !             7:  *     connect(host,dev)
        !             8:  *     char *host, *dev;
        !             9:  *     disconnect(host,dev)
        !            10:  *     char *host, *dev;
        !            11:  *
        !            12:  * DESCRIPTION
        !            13:  *     Installation-supplied exits from bscd
        !            14:  *     connect - installation connect routine
        !            15:  *     disconnect - installation disconnect routine
        !            16:  */
        !            17: 
        !            18: /* connect - installation connect routine */
        !            19: connect(host,dev)
        !            20: char *host, *dev;
        !            21: {
        !            22:        char garbage;
        !            23: 
        !            24:        printf("Ready to connect to host <%s>.\n",host);
        !            25:        printf("Press Return to continue or enter 'q' to quit: ");
        !            26: 
        !            27:        if ((garbage=getc(stdin)) != '\n' && garbage != '\r') exit(0);
        !            28: 
        !            29:        return(0);      
        !            30: }
        !            31: 
        !            32: /* disconnect - installation disconnect routine */
        !            33: disconnect(host, dev)
        !            34: char *host, *dev;
        !            35: {}

unix.superglobalmegacorp.com

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