Annotation of 42BSD/old/berknet/interact.c, revision 1.1

1.1     ! root        1: static char sccsid[] = "@(#)interact.c 4.1     (Berkeley)      10/2/82";
        !             2: 
        !             3: /*
        !             4:        interact.c
        !             5: 
        !             6:        send a packet to the program "listen"
        !             7: */
        !             8: # include "defs.h"
        !             9: main(argc,argv)
        !            10:   char **argv;
        !            11:        {
        !            12:        int i,c;
        !            13:        char buf[2000];
        !            14:        setupdaemon(argc,argv);
        !            15:        initseqno();
        !            16:        for(;;){
        !            17:                putchar('?');
        !            18:                i = 0;
        !            19:                while((c = getchar()) != '\n' && c != EOF)
        !            20:                        buf[i++] = c;
        !            21:                if(xwrite(buf,i) == WRITEFAIL)fprintf(stderr,"writefail\n");
        !            22:                }
        !            23:        }

unix.superglobalmegacorp.com

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