strlwr

Replaces each character of a string with its lowercase equivalent

Local Servers:nonblocking
Remote Servers:N/A
Classification:Other
Service:String Manipulation

Syntax

  #include <string.h>  
  char *strlwr  (  
     char   *str);
  

Parameters

str
(IN) Points to the string to be converted to lowercase characters.

Return Values

The address of the converted string is returned.

Remarks

strlwr replaces the string str with lowercase characters by invoking the tolower function for each character in the string.

See Also

strupr

Example

  #include <string.h>  
  #include <stdio.h>  
   
  char source[ ] = { "A mixed-case STRING" };  
  main ()  
  {  
     printf ("%s\n", source);  
     printf ("%s\n", strlwr (source) );  
     printf ("%s\n", source);  
  }
  

produces the following:

  A mixed-case STRING  
  a mixed-case string  
  a mixed-case string