blob: 95bfc3147ee4e7d23f0233b1d80fc6f07c384701 [file] [log] [blame]
/*
* snprintf()
*
* Implement snprintf() in terms of vsnprintf()
*/
#include "compiler.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include "nasmlib.h"
#if !defined(HAVE_SNPRINTF) && !defined(HAVE__SNPRINTF)
int snprintf(char *str, size_t size, const char *format, ...)
{
va_list ap;
int rv;
va_start(ap, format);
rv = vsnprintf(str, size, format, ap);
va_end(ap);
return rv;
}
#endif