MCPcopy Create free account
hub / github.com/VictorGordan/opengl-tutorials / ImStrSkipBlank

Function ImStrSkipBlank

ImGUI GLFW Tutorial/imgui/imgui.cpp:1407–1412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1405}
1406
1407const char* ImStrSkipBlank(const char* str)
1408{
1409 while (str[0] == ' ' || str[0] == '\t')
1410 str++;
1411 return str;
1412}
1413
1414// A) MSVC version appears to return -1 on overflow, whereas glibc appears to return total count (which may be >= buf_size).
1415// Ideally we would test for only one of those limits at runtime depending on the behavior the vsnprintf(), but trying to deduct it at compile time sounds like a pandora can of worm.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected