#include "wrapper.h"
#if defined(_MSC_VER) && _MSC_VER < 1900
int RS_vsnprintf(
char *buffer,
size_t count,
const char *format,
va_list argptr)
{
int result = -1;
if (count)
result = _vsnprintf_s(buffer, count, _TRUNCATE, format, argptr);
if (result < 0)
result = _vscprintf(format, argptr);
return result;
}
#else
int RS_vsnprintf(
char *buffer,
size_t count,
const char *format,
va_list argptr)
{
return vsnprintf(buffer, count, format, argptr);
}
#endif
const void *const RS_EMPTY_ARRAY_SENTINEL = UA_EMPTY_ARRAY_SENTINEL;