MCPcopy Create free account
hub / github.com/RavEngine/RavEngine / vsnprintf

Function vsnprintf

deps/physx/physx/source/foundation/src/PsString.cpp:132–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132int32_t vsnprintf(char* dst, size_t dstSize, const char* src, va_list arg)
133{
134
135#if PX_VC // MSVC is not C99-compliant...
136 int32_t result = dst ? ::vsnprintf(dst, dstSize, src, arg) : -1;
137 if(dst && (result == int32_t(dstSize) || result < 0))
138 dst[dstSize - 1] = 0; // string was truncated or there wasn't room for the NULL
139 if(result < 0)
140 result = _vscprintf(src, arg); // work out how long the answer would have been.
141#else
142 int32_t result = ::vsnprintf(dst, dstSize, src, arg);
143#endif
144 return result;
145}
146
147int32_t stricmp(const char* str, const char* str1)
148{

Callers 5

errorImplMethod · 0.85
snprintfFunction · 0.85
printFormattedFunction · 0.85
DebugTextMethod · 0.85
SDL_vsnprintfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected