mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-17 14:16:10 -06:00
+Ide: main package configuration editor shows structured flags accepted by packages git-svn-id: svn://ultimatepp.org/upp/trunk@2917 f0d560ea-af0d-0410-9eb7-867de7ffcac7
31 lines
452 B
C
31 lines
452 B
C
/*
|
|
* snprintf()
|
|
*
|
|
* Implement snprintf() in terms of vsnprintf()
|
|
*/
|
|
|
|
#include "compiler.h"
|
|
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <stdarg.h>
|
|
|
|
#include "nasmlib.h"
|
|
|
|
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;
|
|
}
|