This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v2] manual: Correct guarantee about pointers compared by qsort()
- From: Jonathan Nieder <jrnieder at gmail dot com>
- To: Anders Kaseorg <andersk at mit dot edu>
- Cc: Florian Weimer <fweimer at redhat dot com>, Andreas Schwab <schwab at suse dot de>, Paul Eggert <eggert at cs dot ucla dot edu>, OndÅej BÃlka <neleai at seznam dot cz>, libc-alpha at sourceware dot org
- Date: Fri, 12 Dec 2014 00:26:18 -0800
- Subject: Re: [PATCH v2] manual: Correct guarantee about pointers compared by qsort()
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot DEB dot 2 dot 10 dot 1412110532540 dot 37899 at buzzword-bingo dot mit dot edu>
Anders Kaseorg wrote:
> C99, C11, POSIX, and the glibc implementation do guarantee that the
> pointers passed to the qsort comparison function lie within the array.
>
> (Also, fix a small typographical mistake: @var{qsort} should be
> @code{qsort}.)
>
> Signed-off-by: Anders Kaseorg <andersk@mit.edu>
> ---
> manual/search.texi | 14 ++++++++------
> 1 file changed, 8 insertions(+), 6 deletions(-)
For what it's worth,
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>