fflush()

jsekhon@latte.harvard.edu jsekhon@latte.harvard.edu
Sun Jul 5 13:08:00 GMT 1998


Hello,

I am using the CYGWIN32 cross-compiler to Win32 (from LINUX).  I have used
versions based on both cygwin-b18-2 and cygwin-b19.  The fflush() command
does not seem to work.  For example, I cannot fflush(stdout).  My program
is a console application, and I run it in a Windows 95 dos shell.  stdout
is not written until the program terminates.  All fflush(stdout) commands
are ignored.  The same behavior occurs when fflush() is applied to a file.
The file is not written until the program terminates.  The only way around
this has been to fclose() the file I wish to write output to.  This seems
to be the only way to dump the contents of the relevant buffers.  The
program works flawlessly when I compile the program for LINUX using gcc.
Any suggestions?

Please reply directly to me (and the list).  Thank you in advance.

Cheers,
Jas.

===================================
Jasjeet S. Sekhon                           
Harvard University
jsekhon@latte.harvard.edu
http://www.fas.harvard.edu/~jsekhon
===================================


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".



More information about the Cygwin mailing list