MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / ImFormatString

Function ImFormatString

lib/imgui/imgui.cpp:1373–1389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1371#endif
1372
1373int ImFormatString(char* buf, size_t buf_size, const char* fmt, ...)
1374{
1375 va_list args;
1376 va_start(args, fmt);
1377#ifdef IMGUI_USE_STB_SPRINTF
1378 int w = stbsp_vsnprintf(buf, (int)buf_size, fmt, args);
1379#else
1380 int w = vsnprintf(buf, buf_size, fmt, args);
1381#endif
1382 va_end(args);
1383 if (buf == NULL)
1384 return w;
1385 if (w == -1 || w >= (int)buf_size)
1386 w = (int)buf_size - 1;
1387 buf[w] = 0;
1388 return w;
1389}
1390
1391int ImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args)
1392{

Callers 15

BeginChildExMethod · 0.85
BeginTooltipExMethod · 0.85
BeginPopupExMethod · 0.85
NavScoreItemMethod · 0.85
NavUpdateMethod · 0.85
NodeDrawListMethod · 0.85
NodeTabBarMethod · 0.85
ShowMetricsWindowMethod · 0.85
AddFontDefaultMethod · 0.85
AddFontFromFileTTFMethod · 0.85
ProgressBarMethod · 0.85
BeginComboMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected