![]() |
![]()
| ![]() |
![]()
NAMExt_strtrim() - Trim junk from both ends of a string LIBRARY#include <xtend/string.h> -lxtend SYNOPSISvoid xt_strtrim(char *string, const char *fat) ARGUMENTSstring The string to be trimmed fat A string containing a list of characters to be removed DESCRIPTIONTrim unwanted characters off both ends of a string. Typically this is whitespace added to a comma-separated file or similar. EXAMPLESchar string[] = " Alfred E. Neumann." xt_strtrim(string, " ."); puts(string); Output is "Aldred E. Neumann" SEE ALSOstrsep(3)
|