1 --- _SB/Libc/stdlib/FreeBSD/qsort.3 2004-11-25 11:38:42.000000000 -0800
2 +++ _SB/Libc/stdlib/FreeBSD/qsort.3.edit 2006-06-28 16:55:53.000000000 -0700
7 -.Nm qsort , qsort_r , heapsort , mergesort
22 +.Fa "int \*[lp]*compar\*[rp]\*[lp]const void *, const void *\*[rp]"
29 +.Fa "int \*[lp]*compar\*[rp]\*[lp]const void *, const void *\*[rp]"
38 .Fa "int \*[lp]*compar\*[rp]\*[lp]const void *, const void *\*[rp]"
48 .Fa "int \*[lp]*compar\*[rp]\*[lp]void *, const void *, const void *\*[rp]"
55 -.Fa "int \*[lp]*compar\*[rp]\*[lp]const void *, const void *\*[rp]"
62 -.Fa "int \*[lp]*compar\*[rp]\*[lp]const void *, const void *\*[rp]"
68 function is a modified selection sort.
71 -function is a modified merge sort with exponential search
72 +function is a modified merge sort with exponential search,
73 intended for sorting data with pre-existing order.
79 functions sort an array of
82 objects, the initial member of which is pointed to by
84 The size of each object is specified by
90 behaves similarly, but
96 .Dq "sizeof(void *) / 2" .
102 -stable, that is, if two members compare as equal, their order in
103 +stable; that is, if two members compare as equal, their order in
104 the sorted array is undefined.
110 requires additional memory of size
115 bytes; it should be used only when space is not at a premium.
125 +which is faster than
127 Memory availability and pre-existing order in the data can make this
129 @@ -218,10 +221,10 @@
135 argument is zero, or,