exercise 3
This commit is contained in:
parent
fc20882f74
commit
90e101db98
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
gowrikumar/00-sizeof
|
||||
gowrikumar/02-dowhile
|
||||
gowrikumar/03-stdoutbuf
|
||||
|
22
gowrikumar/03-stdoutbuf.c
Normal file
22
gowrikumar/03-stdoutbuf.c
Normal 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
|
||||
*/
|
Loading…
Reference in New Issue
Block a user