>
> 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.
- [LI] C Programming problem Umesh Kumar Sisodia
- Re: [LI] C Programming problem Binand Raj S.
- Re: [LI] C Programming problem sudheer
- Re: [LI] C Programming problem Shourya Sarcar
- Re: [LI] C Programming problem Shourya Sarcar
- [LI] C Programming problem Mrinal Kalakrishnan
- Re: [LI] C Programming problem Shourya Sarcar
- Re: [LI] C Programming problem Anand Singh Bisen
- Re: [LI] C Programming problem Ashu Razdan
- Re: [LI] C Programming problem T Subramania Sharma
- Re: [LI] C Programming problem Sojan James
- Re: [LI] C Programming problem Binand Raj S.
- Re: [LI] C Programming problem Rohit
- Re: [LI] C Programming problem Binand Raj S.
- Re: [LI] C Programming problem SHRIDHAR N. DAITHANKAR
- Re: [LI] C Programming problem Binand Raj S.
- RE: [LI] C Programming problem Prashast
