MCPcopy Create free account
hub / github.com/BoomingTech/Piccolo / ImFormatString

Function ImFormatString

engine/3rdparty/imgui/imgui.cpp:1664–1680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1662#endif
1663
1664int ImFormatString(char* buf, size_t buf_size, const char* fmt, ...)
1665{
1666 va_list args;
1667 va_start(args, fmt);
1668#ifdef IMGUI_USE_STB_SPRINTF
1669 int w = stbsp_vsnprintf(buf, (int)buf_size, fmt, args);
1670#else
1671 int w = vsnprintf(buf, buf_size, fmt, args);
1672#endif
1673 va_end(args);
1674 if (buf == NULL)
1675 return w;
1676 if (w == -1 || w >= (int)buf_size)
1677 w = (int)buf_size - 1;
1678 buf[w] = 0;
1679 return w;
1680}
1681
1682int ImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args)
1683{

Callers 15

TableHeaderMethod · 0.85
DebugNodeTableMethod · 0.85
BeginChildExMethod · 0.85
BeginTooltipExMethod · 0.85
BeginPopupExMethod · 0.85
NavScoreItemMethod · 0.85
NavUpdateMethod · 0.85
DockSpaceMethod · 0.85
DockSpaceOverViewportMethod · 0.85
ShowMetricsWindowMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected