MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / ImStrSkipBlank

Function ImStrSkipBlank

extern/imgui/imgui.cpp:1794–1799  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1792}
1793
1794const char* ImStrSkipBlank(const char* str)
1795{
1796 while (str[0] == ' ' || str[0] == '\t')
1797 str++;
1798 return str;
1799}
1800
1801// A) MSVC version appears to return -1 on overflow, whereas glibc appears to return total count (which may be >= buf_size).
1802// 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 2

Calls

no outgoing calls

Tested by

no test coverage detected