C – Strlwr

C – Strlwr 2017-06-12T11:03:22+00:00

string function : strlwr()

char * strlwr(char *str)

strlwr(str) coverts str to all lowercase.

This function will convert all the uppercase characters in the string, which is provided as parameter, into lowercase. It does not take care whether it is the starting letter or not. It will convert every uppercase to lowercase.

For example


here we declares the string str like this str[30]=”www.CProgrammingExpert.com”; The string str is a character array of size 30.The character is stored like this

when we use the function strlwr(str) it will convert all characters stored in the character array str to lowercase.Then stored like this

so after using the function strlwr(str) the value of string str is”www.learnermode.com”

Example :

Output :

str = www.LearnerMode.com


Prev Next