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

Function ImFormatStringV

engine/3rdparty/imgui/imgui.cpp:1682–1695  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1680}
1681
1682int ImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args)
1683{
1684#ifdef IMGUI_USE_STB_SPRINTF
1685 int w = stbsp_vsnprintf(buf, (int)buf_size, fmt, args);
1686#else
1687 int w = vsnprintf(buf, buf_size, fmt, args);
1688#endif
1689 if (buf == NULL)
1690 return w;
1691 if (w == -1 || w >= (int)buf_size)
1692 w = (int)buf_size - 1;
1693 buf[w] = 0;
1694 return w;
1695}
1696#endif // #ifdef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS
1697
1698// CRC32 needs a 1KB lookup table (not cache friendly)

Callers 5

appendfvMethod · 0.85
TextVMethod · 0.85
LabelTextVMethod · 0.85
BulletTextVMethod · 0.85
TreeNodeExVMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected