home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
minnie.tuhs.org
/
unixen.tar
/
unixen
/
PDP-11
/
Distributions
/
ucb
/
spencer_2bsd.tar.gz
/
2bsd.tar
/
src
/
net
/
interact.c
< prev
next >
Wrap
C/C++ Source or Header
|
1980-02-17
|
353b
|
18 lines
/* Copyright (c) 1979 Regents of the University of California */
# include "defs.h"
main(argc,argv)
char **argv;
{
int i,c;
char buf[2000];
setupdaemon(argc,argv);
sendreset();
for(;;){
putchar('?');
i = 0;
while((c = getchar()) != '\n' && c != EOF)
buf[i++] = c;
if(xwrite(buf,1,i) == WRITEFAIL)fprintf(stderr,"writefail\n");
}
}