how to call qsort in c?
void qsort ( void * base, size_t num, size_t size, int ( * comparator ) ( const void *, const void * ) ); The function qsort() sorts the num element of the array pointed by base. Every element has a size of size bytes long. The qsort function will use the comparator function to determine the order of the elements.