Strip whitespace chars off end of given string, in place. Return s. */
| 26 | |
| 27 | /* Strip whitespace chars off end of given string, in place. Return s. */ |
| 28 | static 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. */ |
| 37 | static char* lskip(const char* s) |
no test coverage detected