MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / vsnprintf

Function vsnprintf

Source/Windows/Common/CRT/String.cpp:110–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110int vsnprintf(char* __restrict__ Dest, size_t Count, const char* __restrict__ Format, va_list Args) {
111 int ret = _vsnprintf(Dest, Count, Format, Args);
112 if (ret == -1) {
113 Dest[Count - 1] = '\0';
114 return _vsnprintf(nullptr, 0, Format, Args);
115 }
116 return ret;
117}
118
119int snprintf(char* stream, size_t n, const char* format, ...) {
120 __builtin_va_list args;

Callers 1

snprintfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected