| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | scanf |
Saturday March 25 1995, Andrew Grillet writes to John Poltorak: JP>> values. Is this just a quirk of using an OS/2 compiler, or is Mr. JP>> Schildt in error here? AG> Arrh, Jim lad, 'tis a terrible thing, this C stuff.... AG> You need to 'flush the buffer' to get the prompt stuff written. There AG> are two ways ... AG> call fflush() after writing the prompt stuff. AG> tell the system to do this automatically with AG> setvbuf() AG> check the online doc'n to find out about these. IMHO, using fflush() is AG> more likely to be portable. AG> The reason you don't need this in most DOS systems is cos DOS is trash. I am perfectly aware of the limitations of DOS, that's why I tried to get hold of a book which sounded 'platform indepedent'. I'm surprised that ICC works differently from GCC wrt SCANF, but I suppose it's part of the learning curve. John --- GoldED/2 2.50.Beta4+* Origin: (2:250/313) SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809 @PATH: 250/313 440/4 141/209 270/101 105/103 42 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.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™.