Sign in
googlers
/
maze
/
klibc
/
b2fe4a9a9e69ad91544c424c3bb4c64d82e96490
/
.
/
klibc
/
sprintf.c
blob: 31f28af0054bd0379ecc2f2362f639790979c190 [
file
] [
log
] [
blame
]
/*
* sprintf.c
*/
#include
<stdio.h>
#include
<unistd.h>
int
sprintf
(
char
*
buffer
,
const
char
*
format
,
...)
{
va_list ap
;
int
rv
;
va_start
(
ap
,
format
);
rv
=
vsnprintf
(
buffer
,
~(
size_t
)
0
,
format
,
ap
);
va_end
(
ap
);
return
rv
;
}