tolower

Converts an uppercase character to the corresponding lowercase character

Local Servers:nonblocking
Remote Servers:N/A
Classification:ANSI
Service:Character Manipulation

Syntax

  #include <ctype.h>  
   
  int tolower  ( 
     int   c);
  

Parameters

c
(IN) Specifies the character to be converted to lowercase.

Return Values

The tolower function returns the corresponding lowercase character when the argument is an uppercase character. Otherwise, the original character is returned.

Remarks

The tolower function converts an uppercase character to the corresponding lowercase character in the ASCII code set.

See Also

isalnum, isalpha, iscntrl, isdigit, isgraph, islower, isprint, ispunct, isspace, isupper, isxdigit, strlwr, strupr, toupper

Example

  #include <stdlib.h>  
  #include <ctype.h>  
  #include <stdio.h>  
   
  main()  
  {  
     char s[] = "THIRD QUARTER REPORT";  
     int i;  
     for(i=0;s[i];i++) s[i] = tolower(s[i]);  
     printf("%s\r\n",s);  
     getch();  
  }