The strlwr( ) function is a built-in function in C and is used to convert a given string into lowercase.
char *strlwr(char *str);
- str: This represents the given string which we want to convert into lowercase.
Returns: It returns the modified string obtained after converting the characters of the given string str to lowercase.
Note: This is a non-standard function that works only with older versions of Microsoft C.
Below programs illustrate the strlwr() function in C:
str[ ] =
"GEEKSFORGEEKS IS THE BEST"
geeksforgeeks is the best
"CompuTer ScienCe PoRTAl fOr geeKS"
"Given string is: %s\n"
"\nString after converting to the "
"lowercase is: %s"
Given string is: CompuTer ScienCe PoRTAl fOr geeKS
String after converting to the lowercase is: computer science portal for geeks
Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses
are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!