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

Method FormatString

core/logic/PhraseCollection.cpp:120–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

118}
119
120bool CPhraseCollection::FormatString(char *buffer,
121 size_t maxlength,
122 const char *format,
123 void **params,
124 unsigned int numparams,
125 size_t *pOutLength,
126 const char **pFailPhrase)
127{
128 unsigned int arg;
129
130 arg = 0;
131 if (!gnprintf(buffer, maxlength, format, this, params, numparams, arg, pOutLength, pFailPhrase))
132 {
133 return false;
134 }
135
136 if (arg != numparams)
137 {
138 if (pFailPhrase != NULL)
139 {
140 *pFailPhrase = NULL;
141 }
142 return false;
143 }
144
145 return true;
146}

Callers

nothing calls this directly

Calls 1

gnprintfFunction · 0.85

Tested by

no test coverage detected