MCPcopy Create free account
hub / github.com/PlatformLab/NanoLog / format

Function format

runtime/Util.cc:34–42  ·  view source on GitHub ↗

A safe version of sprintf.

Source from the content-addressed store, hash-verified

32
33/// A safe version of sprintf.
34std::string
35format(const char* format, ...)
36{
37 va_list ap;
38 va_start(ap, format);
39 string s = vformat(format, ap);
40 va_end(ap);
41 return s;
42}
43
44/// A safe version of vprintf.
45string

Callers 3

Util.ccFile · 0.85
hexDumpFunction · 0.85
checkFormatFunction · 0.85

Calls 1

vformatFunction · 0.85

Tested by

no test coverage detected