This strlwr() string function converts all given string characters into lowercase.
Syntax for strlwr()
1 |
strlwr(String_name); |
Example:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
/* -------------------------------- Works only on Visual C compiler --------------------------------*/ #include<stdio.h> #include<string.h> int main() { char s1[]="HeLlo"; char s2[20]; printf ( "Before reverse = %s\n", s1 ) ; printf ( "After reverse = %s",strlwr(s1) ) ; } |
Output:
1 2 |
Before reverse = HeLlo After reverse = hello |