C Function Tolower
# C Library Function - tolower()
[ C Standard Library - ](#)
## Description
The C library function **int tolower(int c)** converts a given letter to lowercase.
## Declaration
Here is the declaration for the tolower() function.
int tolower(int c);
## Parameters
* **c** -- This is the letter to be converted to lowercase.
## Return Value
If c has a corresponding lowercase letter, the function returns the lowercase letter of c, otherwise c remains unchanged. The return value is an int value that can be implicitly converted to a char type.
## Example
The following example demonstrates the usage of the tolower() function.
## Example
#include#includeint main(){int i = 0; char c; char str[] = ""; while(str){putchar(tolower(str)); i++; }return(0); }
Let's compile and run the above program, which will produce the following result:
[ C Standard Library - ](#)
YouTip