1#include <stdio.h>
2
3static int
4do_test (void)
5{
6 if (setvbuf (stderr, NULL, _IOFBF, BUFSIZ) != 0)
7 {
8 puts (s: "Set full buffer error.");
9 return 1;
10 }
11
12 fprintf (stderr, "Output #1 <stderr>.\n");
13 printf (format: "Output #2 <stdout>.\n");
14
15 return 0;
16}
17
18#define TEST_FUNCTION do_test ()
19#include "../test-skeleton.c"
20

source code of glibc/stdio-common/tst-setvbuf1.c