MCPcopy Create free account
hub / github.com/bulletphysics/bullet3 / ImFormatString

Function ImFormatString

examples/ThirdPartyLibs/imgui/imgui.cpp:1121–1133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1119// B) When buf==NULL vsnprintf() will return the output size.
1120#ifndef IMGUI_DISABLE_FORMAT_STRING_FUNCTIONS
1121int ImFormatString(char* buf, size_t buf_size, const char* fmt, ...)
1122{
1123 va_list args;
1124 va_start(args, fmt);
1125 int w = vsnprintf(buf, buf_size, fmt, args);
1126 va_end(args);
1127 if (buf == NULL)
1128 return w;
1129 if (w == -1 || w >= (int)buf_size)
1130 w = (int)buf_size - 1;
1131 buf[w] = 0;
1132 return w;
1133}
1134
1135int ImFormatStringV(char* buf, size_t buf_size, const char* fmt, va_list args)
1136{

Callers 15

NavScoreItemFunction · 0.85
NavUpdateMethod · 0.85
BeginTooltipExMethod · 0.85
BeginPopupExMethod · 0.85
BeginChildExFunction · 0.85
DataTypeFormatStringFunction · 0.85
SliderFloatMethod · 0.85
VSliderFloatMethod · 0.85
DragFloatMethod · 0.85
ProgressBarMethod · 0.85
InputFloatMethod · 0.85
BeginComboMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected