Back to index

glibc  2.9
tst-setvbuf1.c
Go to the documentation of this file.
00001 #include <stdio.h>
00002 
00003 static int
00004 do_test (void)
00005 {
00006   if (setvbuf (stderr, NULL, _IOFBF, BUFSIZ) != 0)
00007     {
00008       puts ("Set full buffer error.");
00009       return 1;
00010     }
00011 
00012   fprintf (stderr, "Output #1 <stderr>.\n");
00013   printf ("Output #2 <stdout>.\n");
00014 
00015   return 0;
00016 }
00017 
00018 #define TEST_FUNCTION do_test ()
00019 #include "../test-skeleton.c"