This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
question about printf
- To: egcs-bugs at cygnus dot com
- Subject: question about printf
- From: Kent B Mein <mein at cs dot umn dot edu>
- Date: Wed, 18 Nov 1998 12:07:36 -0600 (CST)
I have a kind of goofy question,
Not sure if this is the place to talk about it or not.
I scanned through the old posts and couldn't find anything about it.
Basically here is the problem (Which occurs only on linux machines)
printf("%c %c %c %c\n",getchar(),getchar(),getchar(),getchar());
Preforms the getchar's backwards. Is this a problem, or is it just
a coding problem?
The fix is of course to store the getchar's in var's before
printing them out.
Thanks for any info,
Kent Mein