MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / ImFormatStringV

Function ImFormatStringV

Dependencies/ImGui/src/imgui.cpp:2186–2199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2184}
2185
2186int ImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args)
2187{
2188#ifdef IMGUI_USE_STB_SPRINTF
2189 int w = stbsp_vsnprintf(buf, (int)buf_size, fmt, args);
2190#else
2191 int w = vsnprintf(buf, buf_size, fmt, args);
2192#endif
2193 if (buf == NULL)
2194 return w;
2195 if (w == -1 || w >= (int)buf_size)
2196 w = (int)buf_size - 1;
2197 buf[w] = 0;
2198 return w;
2199}
2200#endif // #ifdef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS
2201
2202void 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