![]() |
![]()
| ![]() |
![]()
NAMEstrtrimsp - trim leading and/or trailing whitespace from a string SYNOPSIS# include <begemot.h> void strtrimsp(char **pstr, int which); DESCRIPTIONThis function trims whitespace from the string pointed to by *pstr. pstr is a pointer to the string pointer. The string pointer may be changed by the function, if leading whitespace is removed. If which is 0, only leading whitespace is removed, if which is 1, only trailing whitespace is removed. For all other values of which both ends are trimmed. Whitespaceness is determined by isspace(3). SEE ALSOctype(3),
|