turn off buffering
Which one of the following turns off buffering for stdout?
Choice 1 setbuf( stdout, FALSE ); Choice 2 setvbuf( stdout, _IONBF ); Choice 3 setvbuf( stdout, NULL ); Choice 4 setbuf( stdout, _IONBF ); Choice 5 setbuf( stdout, NULL ); |
No, no, no... Definitelly homework. It's an easy question. You have it in 'man setbuf'.
|
Are you filling some sort of query there? ;)
Choice 5 does it, because it is an alias for Code:
setvbuf(stdout,NULL, _IONBF, 8192) I would use command Code:
setvbuf(stdout,NULL,_IONBF,0) |
All times are GMT -5. The time now is 04:01 AM. |