#include <stdlib.h>
#include "report.h"
Functions | |
int | sortPointers (void **base, int num, int(*cmp)(const void *, const void *)) |
Non-recursive quicksort implementation. |
Lost the original link by which I found this code. You might find similar code snippets here:
http://lkml.org/lkml/2005/1/24/191
int sortPointers | ( | void ** | base, | |
int | num, | |||
int(*)(const void *, const void *) | cmp | |||
) |
Non-recursive quicksort implementation.
Algorithm Development Kit 1.0