Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
xt_strtrim(3)		   Library Functions Manual		 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)

								 xt_strtrim(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=xt_strtrim&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help