diff options
| author | Simon Tatham <anakin@pobox.com> | 2019-04-05 19:23:21 +0100 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2019-04-05 19:23:21 +0100 |
| commit | 5c4d6b8f35e749b269907fd2cdaacc117198807b (patch) | |
| tree | 906d0d18799b4720150c40852a03c263fd1a3441 /nestedvm.c | |
| parent | b0c73d5c58bdd4fedd6da94cfb04e2012f47379f (diff) | |
| download | puzzles-5c4d6b8f35e749b269907fd2cdaacc117198807b.zip puzzles-5c4d6b8f35e749b269907fd2cdaacc117198807b.tar.gz puzzles-5c4d6b8f35e749b269907fd2cdaacc117198807b.tar.bz2 puzzles-5c4d6b8f35e749b269907fd2cdaacc117198807b.tar.xz | |
New utility routine: sort with a context parameter.
I'm about to have a need to sort an array based on auxiliary data held
in a variable that's not globally accessible, so I need a sort routine
that accepts an extra parameter and passes it through to the compare
function.
Sorting algorithm is heapsort, because it's the N log N algorithm I
can implement most reliably.
Diffstat (limited to 'nestedvm.c')
0 files changed, 0 insertions, 0 deletions