Mail Archives: djgpp/1995/11/13/05:09:11
On Sun, 12 Nov 1995, J. A. McNamara wrote:
> So, is there any way to force the buffer to flush to standard output
> without a newline? (and also w/o just bumming Zortech off this guy and
> using that, which seems inelegant)
Use fflush(stdout) immediately after the last printf() call.
In some compilers you also may achieve this by requesting that stdout be
unbuffered, by a call to setvbuf() at the beginning of the program, but
fflush() is safer.
- Raw text -