![]() |
![]()
| ![]() |
![]()
NAMEstrtrim - remove leading and trailing whitespace SYNOPSIS#include <publib.h> char *strtrim(char *s); DESCRIPTIONstrtrim removes all whitespace characters from the beginning and the end of a string. As whitespace is counted everything for which isspace(3) returns true. RETURN VALUEstrtrim returns its argument. EXAMPLETo remove whitespace from the beginning and end of all lines, you might do the following:
SEE ALSOpublib(3), strrtrim(3), strltrim(3), isspace(3) AUTHORLars Wirzenius (lars.wirzenius@helsinki.fi)
|