| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | #8339-C programming |
#: 8342 S3/Languages
19-Nov-90 19:54:43
Sb: #8339-C programming
Fm: Pete Lyall 76703,4230
To: MAS 76336,3226 (X)
Your approach using the getsYour approach using the getstat call is correct.
Fgets() is the wrong way to read in one character at a time. You could either
use:
a) read() - low level, raw I/O
b) getc(fp) - high level.
When using buffered (high level) I/O, and you want character granularity, you
may want to unbuffer standard input like this:
setbuf(stdin, NULL);
Pete
|
|
| 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™.