libite
|
Functions | |
char * | strtrim (char *str) |
Strip leading and trailing whitespace from a string. More... | |
char* strtrim | ( | char * | str | ) |
Strip leading and trailing whitespace from a string.
str | The string to trim |
Trims a string from any leading and trailing white-space, returns the trimmed result in the same buffer.
str
is a valid, non-NULL string this function returns the same string stripped from whitespace. This function only returns NULL
if str
itself is NULL
.