SyntaxFix
Write A Post
Hire A Developer
Questions
Try setting this before you print:
setvbuf (stdout, NULL, _IONBF, 0);