MCPcopy Create free account
hub / github.com/RenderKit/embree / ImFormatString

Function ImFormatString

tutorials/common/imgui/imgui.cpp:1761–1777  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1759#endif
1760
1761int ImFormatString(char* buf, size_t buf_size, const char* fmt, ...)
1762{
1763 va_list args;
1764 va_start(args, fmt);
1765#ifdef IMGUI_USE_STB_SPRINTF
1766 int w = stbsp_vsnprintf(buf, (int)buf_size, fmt, args);
1767#else
1768 int w = vsnprintf(buf, buf_size, fmt, args);
1769#endif
1770 va_end(args);
1771 if (buf == NULL)
1772 return w;
1773 if (w == -1 || w >= (int)buf_size)
1774 w = (int)buf_size - 1;
1775 buf[w] = 0;
1776 return w;
1777}
1778
1779int ImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args)
1780{

Callers 15

TableHeaderMethod · 0.85
DebugNodeTableMethod · 0.85
GetKeyChordNameMethod · 0.85
BeginTooltipExMethod · 0.85
BeginPopupExMethod · 0.85
NavScoreItemMethod · 0.85
NavUpdateMethod · 0.85
ShowMetricsWindowMethod · 0.85
DebugNodeDrawListMethod · 0.85
DebugNodeTabBarMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected