strlwr() string lower function - C-Tutorial

Latest

Friday, 7 October 2016

strlwr() string lower function

strlwr() function
  • It refers to string lower function.



            The general format of strlwr() function is:

            Syntax:           strlwr(string);

            Function is used to convert all characters in the given string from upper case to lower case characters. 

/* PROGRAM TO PRINT A STRING IN LOWER CASE */

#include<stdio.h>
#include<conio.h>
#include<string.h>
main()
{
            char str[10];
            clrscr();
            printf("\nEnter a String in Upper Case:");
            gets(str);
            printf("\nResult String in Lower Case =%s", strlwr(str));

}

No comments:

Post a Comment