|
|
1.1 ! root 1: /* ! 2: interact.c ! 3: ! 4: send a packet to the program "listen" ! 5: */ ! 6: # include "defs.h" ! 7: main(argc,argv) ! 8: char **argv; ! 9: { ! 10: int i,c; ! 11: char buf[2000]; ! 12: setupdaemon(argc,argv); ! 13: sendreset(); ! 14: for(;;){ ! 15: putchar('?'); ! 16: i = 0; ! 17: while((c = getchar()) != '\n' && c != EOF) ! 18: buf[i++] = c; ! 19: if(xwrite(buf,i) == WRITEFAIL)fprintf(stderr,"writefail\n"); ! 20: } ! 21: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.