Unnamed
public text v1 · immutable
char buf[HOST_BUF_LEN];
int read_b, sent_b;
if (fcntl(0, F_SETFL, O_NONBLOCK) < 0) {
perror("fcntl");
}
while(read_b = fread(buf, sizeof(buf), 1, stdin)){
fwrite(buf, sizeof(buf), 1, stdout);
}
perror("");