C ctype tolower() Function
Example
Convert a character to lowercase:
char u = 'A';
char l = tolower(u);
printf("%c in lowercase is %c", u, l);
Try it Yourself »
Definition and Usage
The tolower()
function returns the ASCII value of a lowercase version of the character. If the
character is not an uppercase character then its value is returned without being changed.
The tolower()
function is defined in the <ctype.h>
header file.
Syntax
int tolower(int c);
Parameter Values
Parameter | Description |
---|---|
c | Required. The ASCII value of a character or an actual character |
Technical Details
Returns: | An int value representing the ASCII value of the lowercase version of a character. |
---|