// Created by Alessandro Lo-Presti (Agilo) on October 7, 2008. #include // Turn debugging on to see the process. #define DEBUG 0 // I was bored, so I made this quicksort function. int *quicksort(int *list, int len) { if (len <= 1) return list; int i, j, s, g, piv, smallerlist[len<<1], greaterlist[len<<1]; // Assign entries to a list (either greater or smaller than the pivot). // Also note that the first entry is the pivot (which is skipped). for (i=1, s=0, g=0; i