C – Strlwr

C – Strlwr 2017-07-19T23:11:43+00:00

Strlwr()

Syntax:
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.

C – STRLWR EXAMPLE PROGRAM :

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.cprogrammingexpert.com”

C – STRLWR EXAMPLE PROGRAM :

Output :

str = www.LearnerMode.com

strlwr(str)=www.cprogrammingexpert.com

Prev Next