repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Don't use .Xo/.Xc. Fix date format.
[netbsd-mini2440.git]
/
regress
/
lib
/
libc
/
ssp
/
vsprintf
/
vsprintf.c
blob
f8076487fd3fb6ba5a89c128100b9f1b72af4aa3
1
#include <stdio.h>
2
#include <stdarg.h>
3
4
static void
wrap
(
char
*
str
,
const char
*, ...);
5
6
static void
7
wrap
(
char
*
str
,
const char
*
fmt
, ...)
8
{
9
va_list
ap
;
10
va_start
(
ap
,
fmt
);
11
(
void
)
vsprintf
(
str
,
fmt
,
ap
);
12
va_end
(
ap
);
13
}
14
15
int
16
main
(
int
argc
,
char
*
argv
[])
17
{
18
char
b
[
10
];
19
wrap
(
b
,
"%s"
,
argv
[
1
]);
20
(
void
)
printf
(
"%s
\n
"
,
b
);
21
return
0
;
22
}