I have to make void function where I sort the items in array according to ASCII values. And I have to change during comparing all upper letters to lower letters.
I wrote a code where I sort the items of the array:
int compareWords(const void *a, const void *b) {
const char *first = *(const char **) a;
const char *second = *(const char **) b;
return strcmp(first , second);
}
void sortWsmallLetters(char **listOfWor, int count) {
qsort(listOfWor, count, sizeof(char *), compareWords);
}
But I have no idea how to change those upper letters to lower letters in array.