#: 8340 S3/Languages
19-Nov-90 19:01:40
Sb: #8339-C programming
Fm: James Jones 76257,562
To: MAS 76336,3226 (X)
Two things: one, fgets() is set up to always read up until either a \n is seen
or the buffer you hand it fills up; two, the FILE structure for stdin is, if
you have it hooked up to a terminal, going to by default use readln() for
input. (Gee, I just split an infinitive! :=) The getstat is sufficiently
system-dependent that I probably would hide the whole thing under a function
interface (that could buffer stuff for you if more than one character were
ready, for efficiency's sake) and not bother to use C standard I/O.
|