From 16c2e5fccb1f5d0e1e3a425651547795eed7bb57 Mon Sep 17 00:00:00 2001 From: pjanzen <> Date: Mon, 12 May 2003 07:15:15 +0000 Subject: [PATCH] Ideas from NetBSD: document nmemb and include sradixsort in the NAME section. Also, stomp a comma splice. --- src/lib/libc/stdlib/radixsort.3 | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/lib/libc/stdlib/radixsort.3 b/src/lib/libc/stdlib/radixsort.3 index f70990fa..1fec9837 100644 --- a/src/lib/libc/stdlib/radixsort.3 +++ b/src/lib/libc/stdlib/radixsort.3 @@ -29,13 +29,14 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: radixsort.3,v 1.7 2001/08/06 10:42:26 mpech Exp $ +.\" $OpenBSD: radixsort.3,v 1.8 2003/05/12 07:15:15 pjanzen Exp $ .\" .Dd January 27, 1994 .Dt RADIXSORT 3 .Os .Sh NAME -.Nm radixsort +.Nm radixsort , +.Nm sradixsort .Nd radix sort .Sh SYNOPSIS .Fd #include @@ -51,8 +52,10 @@ and .Fn sradixsort functions are implementations of radix sort. .Pp -These functions sort an array of pointers to byte strings, the initial -member of which is referenced by +These functions sort an array of +.Fa nmemb +pointers to byte strings. +The initial member is referenced by .Fa base . The byte strings may contain any values; the end of each string is denoted by the user-specified value @@ -86,7 +89,7 @@ has a sorting weight of 0. .Pp The .Fn sradixsort -function is stable, that is, if two elements compare as equal, their +function is stable; that is, if two elements compare as equal, their order in the sorted array is unchanged. The .Fn sradixsort