Quote:>After polling the stdin for data using the select() function, is it as easy
>as using the getchar() function to retrive the data select() has told me
It's not a good idea to mix stdio functions and Unix I/O system calls.
Stdio is buffered, so select() may wait even though there's data sitting in
the stdio input buffer that could be read.
So if you need to use select() to wait for input, you should use read()
rather than getchar().
Quote:>Also, when using getchar(), am I allowed to just loop, reading characters
>into a string, until getting an EOF?
Of course, why wouldn't you be?
Genuity, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.