TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: DAVID VAN HOOSE
from: TOM TORFS
date: 1998-04-04 13:19:00
subject: Reading Input From Stdin

David Van Hoose wrote in a message to David Noon:
-> DH>char name[41];
-> DH>gets(name);
-> DH>name[41]='\0';
-> DH>printf("%s",name);
 DVH> 1: fgets() is for use with files.
No, for use with streams. stdin is a stream.
 DVH> 2: It works, and works perfectly if you ever bothered to try it.
*Sigh* It may work BY ACCIDENT. It is simply WRONG. Geez...
greetings,
Tom
tomtorfs@village.uunet.be
--- timEd/2 1.10+
---------------
* Origin: 80X86 BBS 32-15-24.62.32 V.34/V.FC (24h/24h) (2:292/516)

SOURCE: echomail via exec-pc

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™.