| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | #20862-#scanf() question |
#: 20864 S3/Languages
25-Mar-95 18:57:38
Sb: #20862-#scanf() question
Fm: Bob van der Poel 76510,2203
To: David Breeding 72330,2051 (X)
I think that for problems like that, and many others, most C programmers do not
use scanf(). Instead, it is much easier to use gets() and atoi(), etc. BTW, a
very useful function to have is cgets() and cfgets() which converts the
trailing CR in an string to a '\0'. Those trailing CRs can be a real bother.
There is 1 Reply.
|
|
| 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™.