MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / UTIL_Format

Function UTIL_Format

extensions/sqlite/extension.cpp:59–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59size_t UTIL_Format(char *buffer, size_t maxlength, const char *fmt, ...)
60{
61 va_list ap;
62 va_start(ap, fmt);
63 size_t len = vsnprintf(buffer, maxlength, fmt, ap);
64 va_end(ap);
65
66 if (len >= maxlength)
67 {
68 buffer[maxlength - 1] = '\0';
69 return (maxlength - 1);
70 } else {
71 return len;
72 }
73}
74
75const char *SqliteExt::GetExtensionVerString()
76{

Callers 2

GetStringMethod · 0.50
CopyStringMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected