[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] C Programming problem



> 
> This particular piece of code behaves differently when compiled with gcc
> (Linux), when compared to Turbo C or DJGPP (in DOS).
> 
	This happends because of the IO buffering. To improve performance,
the output stream is buffered. You can explicitly flush the buffer by
calling flush(fd);
	The string is also flushed when it is terminated by a '\n' or '\r'

Regards

Sojan.


--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.