Debian Codegraph @

stdlib/snprintf.c

raw
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