doc: editorial cleanups
[nasm.git] / stdlib / snprintf.c
blobe4a1c0b507904fa04c0339ce37cf841d1c8fc03b
1 /*
2 * snprintf()
4 * Implement snprintf() in terms of vsnprintf()
5 */
7 #include "compiler.h"
10 #include "nasmlib.h"
12 #if !defined(HAVE_SNPRINTF) && !defined(HAVE__SNPRINTF)
14 int snprintf(char *str, size_t size, const char *format, ...)
16 va_list ap;
17 int rv;
19 va_start(ap, format);
20 rv = vsnprintf(str, size, format, ap);
21 va_end(ap);
23 return rv;
26 #endif