ultimatepp/uppsrc/plugin/ndisasm/lib/snprintf.c
cxl e24bf569b1 Sql: SqlSelect::AsTable for ORACLE (thanks wqcmaster!)
git-svn-id: svn://ultimatepp.org/upp/trunk@8840 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2015-08-23 18:27:03 +00:00

37 lines
No EOL
517 B
C

/*
* snprintf()
*
* Implement snprintf() in terms of vsnprintf()
*/
#include "compiler.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include "nasmlib.h"
#ifndef HAVE_SNPRINTF
#ifndef HAVE__SNPRINTF
int snprintf(char *str, size_t size, const char *format, ...)
{
va_list ap;
int rv;
va_start(ap, format);
rv =
#ifdef flagMSC
_vsnprintf
#else
vsnprintf
#endif
(str, size, format, ap);
va_end(ap);
return rv;
}
#endif
#endif