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

Function UTIL_Format

loader/loader.cpp:118–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116} s_FailPlugin;
117
118size_t UTIL_Format(char *buffer, size_t maxlength, const char *fmt, ...)
119{
120 va_list ap;
121
122 va_start(ap, fmt);
123 size_t len = vsnprintf(buffer, maxlength, fmt, ap);
124 va_end(ap);
125
126 if (len >= maxlength)
127 {
128 len = maxlength - 1;
129 buffer[len] = '\0';
130 }
131
132 return len;
133}
134
135METAMOD_PLUGIN *_GetPluginPtr(const char *path, int fail_api)
136{

Callers 3

LoadMethod · 0.70
_GetPluginPtrFunction · 0.70
loader.cppFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected