qsort.3 (53d2936cd317c8b933ca8be36cd1919cdd14e9fc) qsort.3 (ae39ed868b8c4796035c8c6f5730d8554578c6d6)
1.\" Copyright (c) 1990, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" the American National Standards Committee X3, on Information
6.\" Processing Systems.
7.\"
8.\" Redistribution and use in source and binary forms, with or without

--- 18 unchanged lines hidden (view full) ---

27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)qsort.3 8.1 (Berkeley) 6/4/93
33.\" $FreeBSD$
34.\"
1.\" Copyright (c) 1990, 1991, 1993
2.\" The Regents of the University of California. All rights reserved.
3.\"
4.\" This code is derived from software contributed to Berkeley by
5.\" the American National Standards Committee X3, on Information
6.\" Processing Systems.
7.\"
8.\" Redistribution and use in source and binary forms, with or without

--- 18 unchanged lines hidden (view full) ---

27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.\" @(#)qsort.3 8.1 (Berkeley) 6/4/93
33.\" $FreeBSD$
34.\"
35.Dd January 14, 2020
35.Dd January 20, 2020
36.Dt QSORT 3
37.Os
38.Sh NAME
39.Nm qsort ,
40.Nm qsort_b ,
41.Nm qsort_r ,
42.Nm heapsort ,
43.Nm heapsort_b ,

--- 294 unchanged lines hidden (view full) ---

338.Fn qsort_r .
339When porting software written for GNU libc, it is usually possible
340to replace
341.Fn qsort_r
342with
343.Fn qsort_s
344to work around this problem.
345.Pp
36.Dt QSORT 3
37.Os
38.Sh NAME
39.Nm qsort ,
40.Nm qsort_b ,
41.Nm qsort_r ,
42.Nm heapsort ,
43.Nm heapsort_b ,

--- 294 unchanged lines hidden (view full) ---

338.Fn qsort_r .
339When porting software written for GNU libc, it is usually possible
340to replace
341.Fn qsort_r
342with
343.Fn qsort_s
344to work around this problem.
345.Pp
346.Fn qsort_s
347is part of the
348.Em optional
349Annex K portion of
350.St -isoC-2011
351and may not be portable to other standards-conforming platforms.
352.Pp
346Previous versions of
347.Fn qsort
348did not permit the comparison routine itself to call
349.Fn qsort 3 .
350This is no longer true.
351.Sh ERRORS
352The
353.Fn heapsort

--- 78 unchanged lines hidden ---
353Previous versions of
354.Fn qsort
355did not permit the comparison routine itself to call
356.Fn qsort 3 .
357This is no longer true.
358.Sh ERRORS
359The
360.Fn heapsort

--- 78 unchanged lines hidden ---