Don't use .Xo/.Xc. Fix date format.
[netbsd-mini2440.git] / regress / lib / libc / ssp / vsprintf / vsprintf.c
blobf8076487fd3fb6ba5a89c128100b9f1b72af4aa3
1 #include <stdio.h>
2 #include <stdarg.h>
4 static void wrap(char *str, const char *, ...);
6 static void
7 wrap(char *str, const char *fmt, ...)
9 va_list ap;
10 va_start(ap, fmt);
11 (void)vsprintf(str, fmt, ap);
12 va_end(ap);
15 int
16 main(int argc, char *argv[])
18 char b[10];
19 wrap(b, "%s", argv[1]);
20 (void)printf("%s\n", b);
21 return 0;