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

FreeBSD Manual Pages

  
 
  

home | help
xt_strlower(3)		   Library Functions Manual		xt_strlower(3)

NAME
       xt_strlower() - Convert all upper case characters to lower

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

SYNOPSIS
       size_t  xt_strlower(char	*str)

ARGUMENTS
       str	   Pointer to null-terminated string to	be copied

DESCRIPTION
       xt_strlower(3)  converts	 upper	case  characters  in a string to lower
       case, overwriting the  original.	  It  is  functionally	equivalent  to
       xt_strllower(str,  str, strlen(str)).  It is implemented	separately for
       efficiency, since using xt_strllower(3) for this	purpose	requires know-
       ing or computing	the length of the string and passing  three  arguments
       instead of one.

RETURN VALUES
       Size of the src string.

EXAMPLES
       char    src[] = "Some text",
       dest    [DEST_SIZE + 1];

       if ( xt_strllower(dest, src, DEST_SIZE +	1) != DEST_SIZE	+ 1 )
	   fputs("Warning: String truncated.n",	stderr);

SEE ALSO
       xt_strllower(3),	strlcpy(3), strlcat(3)

								xt_strlower(3)

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

home | help