BUG: qsort reorders elements in already sorted array

Corinna Vinschen vinschen@redhat.com
Wed Jun 4 16:13:00 GMT 2003


On Wed, Jun 04, 2003 at 05:50:16PM +0200, Corinna Vinschen wrote:
> Second, it's not clear to me why in the next step the first element
> is dropped from the range of entries which have to be compared.
> `pa = pb = (char *) a + es;' just ignores the first element in the
> following core implementation.  But the map3 stuff called before doesn't

s/map3/med3/

> make sure that the first element is already in order.

Corinna

-- 
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
mailto:vinschen@redhat.com



More information about the Newlib mailing list