00001 /*header file for src/common/qsort.cpp*/ 00002 00003 #ifndef _CORE_COMMON_QSORT_HPP 00004 #define _CORE_COMMON_QSORT_HPP 00005 00006 void element_swap(void *l1, void *l2, void *temp_buf, size_t size); /*swap two elements*/ 00007 void qsort(void *base, size_t nmemb, size_t size, int(*compar)(const void*,const void*), void *temp_buf);/*tha ziom quick sort algorithm*/ 00008 00009 int intcompar(const void *v1, const void *v2); /*compare function for ints*/ 00010 00011 #endif