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:     }

Defined functions

main defined in line 9; never used

Defined variables

sccsid defined in line 1; never used
Last modified: 1982-10-03
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 889
Valid CSS Valid XHTML 1.0 Strict