qsort(Names, numberOfFriends, 50, strcmp);
I tried to make an alphabetical sort on Names (wich is a double pointer). every string in the double pointer is dynamically allocated string, wich means every string have a different size. One of the parameters of the qsort function, is the size of the strings (it's actually a function that ment to 2d array, and not for double pointers with dynamically allocated strings).
How can i do an alphabetical sort on double pointers that have dynamically allocated strings?