projects
/
platform
/
upstream
/
nasm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Formatting: kill off "stealth whitespace"
[platform/upstream/nasm.git]
/
lib
/
snprintf.c
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
}