projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
BSD 4_1c_2 release
[unix-history]
/
usr
/
src
/
ucb
/
berknet
/
interact.c
static char
sccsid
[] =
"@(#)interact.c 4.1 (Berkeley) 10/2/82"
;
/*
interact.c
send a packet to the program "listen"
*/
# include
"defs.h"
main
(
argc
,
argv
)
char
**
argv
;
{
int
i
,
c
;
char
buf
[
2000
];
setupdaemon
(
argc
,
argv
);
initseqno
();
for
(;;){
putchar
(
'?'
);
i
=
0
;
while
((
c
=
getchar
()) !=
'
\n
'
&&
c
!=
EOF
)
buf
[
i
++] =
c
;
if
(
xwrite
(
buf
,
i
) ==
WRITEFAIL
)
fprintf
(
stderr
,
"writefail
\n
"
);
}
}