MCPcopy Create free account
hub / github.com/DFHack/dfhack / stl_sprintf

Function stl_sprintf

library/MiscUtils.cpp:169–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169std::string stl_sprintf(const char *fmt, ...) {
170 va_list lst;
171 va_start(lst, fmt);
172 std::string rv = stl_vsprintf(fmt, lst);
173 va_end(lst);
174 return rv;
175}
176
177std::string stl_vsprintf(const char *fmt, va_list args) {
178 /* Allow small (about single line) strings to be printed into stack memory

Callers 11

history_keyFunction · 0.85
shortJobDescriptionFunction · 0.85
refreshNamesMethod · 0.85
renderMethod · 0.85
clearTargetAreaFunction · 0.85
setTargetAreaFunction · 0.85
setAmmoItemFunction · 0.85
forgetStockpileLinkFunction · 0.85
addStockpileLinkFunction · 0.85
saveWorkshopProfileFunction · 0.85

Calls 1

stl_vsprintfFunction · 0.85

Tested by

no test coverage detected