.... snip about usage of ungetc ...
Please don't snip attributions for material you quote. Please DO
snip material not germane to your reply, and attributions for
material totally snipped.
7.19.5.2 The fflush function
Synopsis
[#1]
#include <stdio.h>
int fflush(FILE *stream);
Description
[#2] If stream points to an output stream or an update
stream in which the most recent operation was not input, the
fflush function causes any unwritten data for that stream to
be delivered to the host environment to be written to the
file; otherwise, the behavior is undefined.
[#3] If stream is a null pointer, the fflush function
performs this flushing action on all streams for which the
behavior is defined above.
Returns
[#4] The fflush function sets the error indicator for the
stream and returns EOF if a write error occurs, otherwise it
returns zero.
After ungetc has been called, the most recent operation on the
stream most definitely was not input. This allows a strict limit
on the buffer space that must be provided.
--
"If you want to post a followup via groups.google.com, don't use
the broken "Reply" link at the bottom of the article. Click on
"show options" at the top of the article, then click on the
"Reply" at the bottom of the article headers." - Keith Thompson
More details at: <
http://cfaj.freeshell.org/google/>
Also see <
http://www.safalra.com/special/googlegroupsreply/>