I want to turn off the buffering for the stdout for getting the exact result for the following code
while(1) {
printf(".");
sleep(1);
}
The code printf bunch of '.' only when buffer gets filled.
question from:https://stackoverflow.com/questions/7876660/how-to-turn-off-buffering-of-stdout-in-c