MCPcopy Create free account
hub / github.com/WebAssembly/wabt / wabt_vsnprintf

Function wabt_vsnprintf

src/config.cc:32–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 -1 instead of the number of characters needed on overflow. */
31#if COMPILER_IS_MSVC
32int wabt_vsnprintf(char* str, size_t size, const char* format, va_list ap) {
33 int result = -1;
34 if (size != 0) {
35 result = _vsnprintf_s(str, size, _TRUNCATE, format, ap);
36 }
37 if (result == -1) {
38 result = _vscprintf(format, ap);
39 }
40 return result;
41}
42
43#if !HAVE_SNPRINTF
44int wabt_snprintf(char* str, size_t size, const char* format, ...) {

Callers 2

wabt_snprintfFunction · 0.85
StringPrintfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected