Menu
   ❮   
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY CYBERSECURITY DATA SCIENCE
     ❯   

C ctype tolower() Function

❮ C ctype Library


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.

❮ C ctype Library