tokedo·2 anni fa·discussA simple solution is to create a C++ file and exposing sorting functions to C. E.g. "void sort_int(int *data, size_t n)". The implementation uses then std::sort.Unfortunately, qsort is really slow and sometimes barely usable.
Unfortunately, qsort is really slow and sometimes barely usable.