Anonymous
Not applicable
Mar 07, 2013
01:47 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 07, 2013
01:47 PM
1 Reply
Anonymous
Not applicable
Mar 07, 2013
01:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Mar 07, 2013
01:53 PM
stdin/stdout is buffered by default.Buffering can be turned off as follows:
setvbuf( stdin, NULL, _IONBF, 0 ); setvbuf( stdout, NULL, _IONBF, 0 ); setvbuf( stderr, NULL, _IONBF, 0 );Alternatively, you can flush stdout as required using:
fflush(stdout);Example usage is shown in console.c in the iperf app.