box-o-sand/gowrikumar/03-stdoutbuf.c
2011-06-16 21:29:28 -04:00

23 lines
334 B
C

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