strtrimsp(l) BEGEMOT Library strtrimsp(l)NAMEstrtrimsp - trim leading and/or trailing whitespace from a string
SYNOPSIS
# include <begemot.h>
void strtrimsp(char **pstr, int which);
DESCRIPTION
This 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),
BEGEMOT 23 August 1997 strtrimsp(l)