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
NASM 2.08rc9
[nasm.git]
/
lib
/
snprintf.c
blob
01734dcf007f4ec15c67dabf572c79fe015c837c
1
/*
2
* snprintf()
3
*
4
* Implement snprintf() in terms of vsnprintf()
5
*/
6
7
#include
"compiler.h"
8
9
#include <stdio.h>
10
#include <stdlib.h>
11
#include <stdarg.h>
12
13
#include
"nasmlib.h"
14
15
int
snprintf
(
char
*
str
,
size_t
size
,
const char
*
format
, ...)
16
{
17
va_list
ap
;
18
int
rv
;
19
20
va_start
(
ap
,
format
);
21
rv
=
vsnprintf
(
str
,
size
,
format
,
ap
);
22
va_end
(
ap
);
23
24
return
rv
;
25
}