MCPcopy Create free account
hub / github.com/NetSys/bess / Format

Function Format

core/utils/format.cc:49–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49std::string Format(const char *fmt, ...) {
50 va_list ap;
51 va_start(ap, fmt);
52 const std::string s = FormatVarg(fmt, ap);
53 va_end(ap);
54 return s;
55}
56
57int ParseVarg(const std::string &s, const char *fmt, va_list ap) {
58 return vsscanf(s.c_str(), fmt, ap);

Callers 15

mainFunction · 0.85
DumpMethod · 0.85
PrintCodeFunction · 0.85
DumpTypeFunction · 0.85
DumpTypesFunction · 0.85
GetDescMethod · 0.85
GetDescMethod · 0.85
ParseIpv4PrefixMethod · 0.85
GetDescMethod · 0.85
GetDescMethod · 0.85
GetDescMethod · 0.85
GetDescMethod · 0.85

Calls 1

FormatVargFunction · 0.85

Tested by

no test coverage detected