On Sun, Oct 31, 2004 at 10:35:02AM +0100, Thomas Koenig wrote:
> int mycomp(void const *p1, void const *p2) {
> mydata const *v1, *v2;
> v1 = p1;
> v2 = p2;
> return (v1->key) < (v2->key);
> }
Change that return to return (v1->key) - (v2->key) and it will
work as expected.
Kurt