MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rstrip

Function rstrip

lib/ff_ini_parser.c:28–34  ·  view source on GitHub ↗

Strip whitespace chars off end of given string, in place. Return s. */

Source from the content-addressed store, hash-verified

26
27/* Strip whitespace chars off end of given string, in place. Return s. */
28static char* rstrip(char* s)
29{
30 char* p = s + strlen(s);
31 while (p > s && isspace((unsigned char)(*--p)))
32 *p = '\0';
33 return s;
34}
35
36/* Return pointer to first non-whitespace char in given string. */
37static char* lskip(const char* s)

Callers 2

ini_parse_streamFunction · 0.85
ifFunction · 0.85

Calls 1

isspaceFunction · 0.85

Tested by

no test coverage detected