This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
fflush()
- To: gnu-win32 at cygnus dot com
- Subject: fflush()
- From: jsekhon at latte dot harvard dot edu
- Date: Sun, 5 Jul 1998 16:07:52 -0400
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".