convert to lowercase in c
/* Use the tolower Function to Convert String to Lowercase in C */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
int main(){
char *str = "THIS STRING LITERAL IS ARBITRARY";
printf("%s\n", str);
for (size_t i = 0; i < strlen(str); ++i) {
printf("%c", tolower((unsigned char) str[i]));
}
printf("\n");
exit(EXIT_SUCCESS);
}