This source file includes following definitions.
- my_fprintf
- main
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 #include <config.h>
20
21 #include <stdio.h>
22
23 #include "signature.h"
24 SIGNATURE_CHECK (vfprintf, int, (FILE *, char const *, va_list));
25
26 #include <stdarg.h>
27 #include <stddef.h>
28 #include <stdint.h>
29 #include <string.h>
30
31 #include "macros.h"
32
33 #include "test-fprintf-posix.h"
34
35 static int
36 my_fprintf (FILE *fp, const char *format, ...)
37 {
38 va_list args;
39 int ret;
40
41 va_start (args, format);
42 ret = vfprintf (fp, format, args);
43 va_end (args);
44 return ret;
45 }
46
47 int
48 main (int argc, char *argv[])
49 {
50 test_function (my_fprintf);
51 return 0;
52 }