MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / String_Trim

Function String_Trim

src/string.c:222–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222void String_Trim(char *string)
223{
224 char *s = string + strlen(string) - 1;
225 while (s >= string && isspace((uint8)*s)) {
226 *s = '\0';
227 s--;
228 }
229}

Callers 3

String_LoadFunction · 0.85
Ini_GetStringFunction · 0.85
ReadProfileIniFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected