MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / ImFormatStringV

Function ImFormatStringV

plugins/Cardinal/src/DearImGui/imgui.cpp:1496–1509  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1494}
1495
1496int ImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args)
1497{
1498#ifdef IMGUI_USE_STB_SPRINTF
1499 int w = stbsp_vsnprintf(buf, (int)buf_size, fmt, args);
1500#else
1501 int w = vsnprintf(buf, buf_size, fmt, args);
1502#endif
1503 if (buf == NULL)
1504 return w;
1505 if (w == -1 || w >= (int)buf_size)
1506 w = (int)buf_size - 1;
1507 buf[w] = 0;
1508 return w;
1509}
1510#endif // #ifdef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS
1511
1512// 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