MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / format

Function format

src/openrct2/core/String.cpp:316–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314 }
315
316 utf8* format(utf8* buffer, size_t bufferSize, const utf8* format, ...)
317 {
318 va_list args;
319
320 va_start(args, format);
321 vsnprintf(buffer, bufferSize, format, args);
322 va_end(args);
323
324 // Terminate buffer in case formatted string overflowed
325 buffer[bufferSize - 1] = '\0';
326
327 return buffer;
328 }
329
330 u8string stdFormat(const utf8* format, ...)
331 {

Callers 2

SetUpFileAssociationFunction · 0.85
SetupUriProtocolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected