strlwr(): Uppercase to Lowercase
#include <stdio.h>
#include <string.h>
int main(void){
char str[]="PLUS2NET";
printf("%s\n",strlwr (str));
return 0;
}
The output of above code is here
plus2net
We can change uppercase letters to lowercase letters by using strlwr()
string function.
strlwr(input_string);
Example : using strlwr() with user input string
#include <stdio.h>
#include <string.h>
int main(void){
char str[100];
printf("Enter any string");
scanf("%s",str);
printf("Output: %s",strlwr(str));
return 0;
}
Output
PLUS2NET
plus2net
This article is written by plus2net.com team.
plus2net.com