diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 2003-05-12 07:15:16 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 2003-05-12 07:15:16 +0000 |
commit | fae7d2a7d068c0a3e33cd8a5f777505f4a1f90e5 (patch) | |
tree | aef48ff5b7a4b1e5eab3d5a800cd42287f9fac17 /lib/libc | |
parent | 9b5daff75d197a901adc03011cf7e1220a9a7082 (diff) |
Ideas from NetBSD: document nmemb and include sradixsort in the NAME section.
Also, stomp a comma splice.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/stdlib/radixsort.3 | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/libc/stdlib/radixsort.3 b/lib/libc/stdlib/radixsort.3 index f70990fa8ed..1fec9837271 100644 --- a/lib/libc/stdlib/radixsort.3 +++ b/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 <limits.h> @@ -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 |