TIP: Click on subject to list as thread! ANSI
echo: cis.languages
to: MAS 76336,3226 (X)
from: James Jones 76257,562
date: 1990-11-19 19:01:40
subject: #8339-C programming

#: 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.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.