You are here : cpp0tolower

tolower() - 0

The C library function int tolower(int c) converts a given letter to lowercase.
This function returns lowercase equivalent to c, if such value exists, else c remains unchanged. The value is returned as an int value that can be implicitly casted to char.


Syntax

int tolower(int c);


Example

#include <stdio.h>
#include <ctype.h>

int main()
{
   int i = 0;
   char c;
   char str[] = "TUTORIALS POINT";
	
   while( str[i] ) 
   {
      putchar(tolower(str[i]));
      i++;
   }
   
   return(0);
}


Output / Return Value

tutorials point


Limitations


Alternatives / See Also


Reference