This source file includes following definitions.
- my_sprintf
- 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 (vsprintf, int, (char *, char const *, va_list));
25
26 #include <float.h>
27 #include <stdarg.h>
28 #include <stddef.h>
29 #include <stdint.h>
30 #include <stdlib.h>
31 #include <string.h>
32
33 #include "macros.h"
34
35 #include "test-sprintf-posix.h"
36
37 static int
38 my_sprintf (char *str, const char *format, ...)
39 {
40 va_list args;
41 int ret;
42
43 va_start (args, format);
44 ret = vsprintf (str, format, args);
45 va_end (args);
46 return ret;
47 }
48
49 int
50 main (int argc, char *argv[])
51 {
52 test_function (my_sprintf);
53 return 0;
54 }