MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / ImFormatStringV

Function ImFormatStringV

TheForceEngine/TFE_Ui/imGUI/imgui.cpp:2036–2049  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2034}
2035
2036int ImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args)
2037{
2038#ifdef IMGUI_USE_STB_SPRINTF
2039 int w = stbsp_vsnprintf(buf, (int)buf_size, fmt, args);
2040#else
2041 int w = vsnprintf(buf, buf_size, fmt, args);
2042#endif
2043 if (buf == NULL)
2044 return w;
2045 if (w == -1 || w >= (int)buf_size)
2046 w = (int)buf_size - 1;
2047 buf[w] = 0;
2048 return w;
2049}
2050#endif // #ifdef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS
2051
2052void ImFormatStringToTempBuffer(const char** out_buf, const char** out_buf_end, const char* fmt, ...)

Callers 2

appendfvMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected