strtrim(3)

LIBRARY
#include <xtend/string.h>
-lxtend

SYNOPSIS

void    strtrim(char *string, const char *fat)

ARGUMENTS
string  The string to be trimmed
fat     A string containing a list of characters to be removed

DESCRIPTION
Trim unwanted characters off both ends of a string. Typically this is whitespace added to a comma-separated file or similar.

EXAMPLES
char    string[] = "  Alfred E. Neumann."
strtrim(string, " .");
puts(string);
Output is "Aldred E. Neumann"

SEE ALSO
strsep(3)