/** * :author: Dan Buch (daniel.buch@gmail.com) */ #include #include int main() { printf("This time we'll flush stdout!\n"); printf("(Hit ^C to stop the madness.)\n"); while(1) { fprintf(stdout, "hello-out "); fprintf(stderr, "hello-err "); fflush(stdout); sleep(1); } return 0; } /* vim:filetype=c:fileencoding=utf-8 */