Created
September 26, 2015 10:54
-
-
Save kaskavalci/c123fb4efd2bc910c995 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
freopen("NUL", "a", stdout); //redirect stdout to null again | |
dup2(stdout_save, STDOUT_FILENO); //restore the previous state of stdout | |
setvbuf(stdout, NULL, _IONBF, MDT_BUFSIZE); //disable buffer to print to screen instantly |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment