xt_strtrim(3)

NAME
xt_strtrim() - Trim junk from both ends of a string

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

SYNOPSIS
void    xt_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."
xt_strtrim(string, " .");
puts(string);
Output is "Aldred E. Neumann"

SEE ALSO
strsep(3)