C – Strlwr

C – Strlwr 2017-08-06T08:55:30+00:00

Strlwr()

strlwr() 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.

Syntax:
char * strlwr(char *str)

strlwr(str) coverts str to all lowercase.

C –  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 this function it will convert all characters stored in the character array str to lowercase.Then stored like this

so after using the function value of string str is”www.cprogrammingexpert.com”

C – EXAMPLE PROGRAM :

Output :

str = www.CprogrammingExpert.com

strlwr(str)=www.cprogrammingexpert.com

Prev Next