Changeset 712 for trunk/zoo-project/zoo-kernel/service.c
- Timestamp:
- Jun 30, 2015, 4:49:08 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service.c
r682 r712 24 24 25 25 #include "service.h" 26 27 #ifdef _MSC_VER 28 #include <stdarg.h> 29 /** 30 * snprintf for Visual Studio compiler. 31 * 32 * See https://dxr.mozilla.org/mozilla-central/source/media/mtransport/third_party/nrappkit/src/util/util.c 33 */ 34 int snprintf(char *buffer, size_t n, const char *format, ...) 35 { 36 va_list argp; 37 int ret; 38 va_start(argp, format); 39 ret = _vscprintf(format, argp); 40 vsnprintf_s(buffer, n, _TRUNCATE, format, argp); 41 va_end(argp); 42 return ret; 43 } 44 #endif 26 45 27 46 /**
Note: See TracChangeset
for help on using the changeset viewer.