Friday 12 August 2016

strlwr: Convert from Upper case to Lower case using Library function

String: strlwr(string)

Convert from Upper case to Lower case using Library function


#include<stdio.h>
#include<string.h>
main()
{
                char s[60];
                printf("\nEnter string:\t");
                gets(s);
                printf("\nString in lowercase: %s", strlwr(s));
}
Output:
Enter string:   Hello How Are You
String in lowercase:  hello  how are you

No comments:

Post a Comment