strlwr(): Uppercase to Lowercase

We can change uppercase letters to lowercase letters by using strlwr() string function.
strlwr(input_string);
We will use this and here is one example.
#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

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
Your Rating




Post your comments , suggestion , error , requirements etc here




We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2019 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer