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

Subscribe

* indicates required
Subscribe to plus2net

    plus2net.com



    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-2024 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer