repo.or.cz
/
nasm.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
doc: editorial cleanups
[nasm.git]
/
stdlib
/
snprintf.c
blob
e4a1c0b507904fa04c0339ce37cf841d1c8fc03b
1
/*
2
* snprintf()
3
*
4
* Implement snprintf() in terms of vsnprintf()
5
*/
6
7
#include
"compiler.h"
8
9
10
#include
"nasmlib.h"
11
12
#if !defined(HAVE_SNPRINTF) && !defined(HAVE__SNPRINTF)
13
14
int
snprintf
(
char
*
str
,
size_t
size
,
const char
*
format
, ...)
15
{
16
va_list
ap
;
17
int
rv
;
18
19
va_start
(
ap
,
format
);
20
rv
=
vsnprintf
(
str
,
size
,
format
,
ap
);
21
va_end
(
ap
);
22
23
return
rv
;
24
}
25
26
#endif