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

Function ImFormatStringV

lib/imgui/imgui.cpp:1391–1404  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1389}
1390
1391int ImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args)
1392{
1393#ifdef IMGUI_USE_STB_SPRINTF
1394 int w = stbsp_vsnprintf(buf, (int)buf_size, fmt, args);
1395#else
1396 int w = vsnprintf(buf, buf_size, fmt, args);
1397#endif
1398 if (buf == NULL)
1399 return w;
1400 if (w == -1 || w >= (int)buf_size)
1401 w = (int)buf_size - 1;
1402 buf[w] = 0;
1403 return w;
1404}
1405#endif // #ifdef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS
1406
1407// 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