Convert string from upper case to lower case in c without using strlwr
Here you will get a program code to convert string from upper case to lower case without using strlwr(builtin) function in c programming.
Convert string from upper case to lower case without using strlwr function.
Upper case to lower case in c program
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | //Change string to lower case without strlwr in c #include <stdio.h> #include <ctype.h> void string_to_lower(char *str) { while(*str) { 	if (*str>='A' && *str<='Z') 	*str=*str+32; 	str++; } } int main() {     char str[] = "Code Revise";     string_to_lower(str);     printf("%s\n", str);     return 0; } | 
Output
Input any string : Welcome to Code Revise
welcome to code revise
Check out our other C programming Examples
