exercise 3

This commit is contained in:
Dan Buch 2011-06-16 21:29:28 -04:00
parent fc20882f74
commit 90e101db98
2 changed files with 23 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
gowrikumar/00-sizeof
gowrikumar/02-dowhile
gowrikumar/03-stdoutbuf

22
gowrikumar/03-stdoutbuf.c Normal file
View File

@ -0,0 +1,22 @@
/**
* :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
*/