MCPcopy Create free account
hub / github.com/ShenCiao/CialloResearch / ImFormatStringV

Function ImFormatStringV

imgui/imgui.cpp:1845–1858  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1843}
1844
1845int ImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args)
1846{
1847#ifdef IMGUI_USE_STB_SPRINTF
1848 int w = stbsp_vsnprintf(buf, (int)buf_size, fmt, args);
1849#else
1850 int w = vsnprintf(buf, buf_size, fmt, args);
1851#endif
1852 if (buf == NULL)
1853 return w;
1854 if (w == -1 || w >= (int)buf_size)
1855 w = (int)buf_size - 1;
1856 buf[w] = 0;
1857 return w;
1858}
1859#endif // #ifdef IMGUI_DISABLE_DEFAULT_FORMAT_FUNCTIONS
1860
1861void ImFormatStringToTempBuffer(const char** out_buf, const char** out_buf_end, const char* fmt, ...)

Callers 3

appendfvMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected