Sha256: 9851b5a50e244a8d0b980919cc475ce14c1d4e8db3a153117edfa4076a8fa20b
Contents?: true
Size: 705 Bytes
Versions: 6
Compression:
Stored size: 705 Bytes
Contents
#include "upb/upb.h" #include "upb/port_def.inc" #ifdef UPB_MSVC_VSNPRINTF /* Visual C++ earlier than 2015 doesn't have standard C99 snprintf and * vsnprintf. To support them, missing functions are manually implemented * using the existing secure functions. */ int msvc_vsnprintf(char* s, size_t n, const char* format, va_list arg) { if (!s) { return _vscprintf(format, arg); } int ret = _vsnprintf_s(s, n, _TRUNCATE, format, arg); if (ret < 0) { ret = _vscprintf(format, arg); } return ret; } int msvc_snprintf(char* s, size_t n, const char* format, ...) { va_list arg; va_start(arg, format); int ret = msvc_vsnprintf(s, n, format, arg); va_end(arg); return ret; } #endif
Version data entries
6 entries across 6 versions & 1 rubygems