MCPcopy Create free account
hub / github.com/AlexandreRouma/SDRPlusPlus / ImFormatStringV

Function ImFormatStringV

core/src/imgui/imgui.cpp:1453–1466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1451}
1452
1453int ImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args)
1454{
1455#ifdef IMGUI_USE_STB_SPRINTF
1456 int w = stbsp_vsnprintf(buf, (int)buf_size, fmt, args);
1457#else
1458 int w = vsnprintf(buf, buf_size, fmt, args);
1459#endif
1460 if (buf == NULL)
1461 return w;
1462 if (w == -1 || w >= (int)buf_size)
1463 w = (int)buf_size - 1;
1464 buf[w] = 0;
1465 return w;
1466}
1467#endif // #ifdef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS
1468
1469// 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