diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-04-20 13:50:04 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-04-20 13:50:04 +0000 |
commit | ba6b056376adedc82f4ac0f41b5eed2fa3f30c75 (patch) | |
tree | e5c095a3d4f9afb3b98cca651e27f12c8880ffbd /lib/libc/stdlib/radixsort.3 | |
parent | 51643f419480d5bdfbed4ef6c16cf20340d8a357 (diff) |
Flesh out stdlib function man pages.
Diffstat (limited to 'lib/libc/stdlib/radixsort.3')
-rw-r--r-- | lib/libc/stdlib/radixsort.3 | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/lib/libc/stdlib/radixsort.3 b/lib/libc/stdlib/radixsort.3 index a1a4ee4eabf..64cc841a49f 100644 --- a/lib/libc/stdlib/radixsort.3 +++ b/lib/libc/stdlib/radixsort.3 @@ -29,7 +29,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: radixsort.3,v 1.5 1999/06/29 18:36:22 aaron Exp $ +.\" $OpenBSD: radixsort.3,v 1.6 2000/04/20 13:50:02 aaron Exp $ .\" .Dd January 27, 1994 .Dt RADIXSORT 3 @@ -49,8 +49,7 @@ The .Fn radixsort and .Fn sradixsort -functions -are implementations of radix sort. +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 @@ -66,23 +65,20 @@ If non-null, .Fa table must reference an array of .Dv UCHAR_MAX -+ 1 bytes which contains the sort -weight of each possible byte value. ++ 1 bytes which contains the sort weight of each possible byte value. The end-of-string byte must have a sort weight of 0 or 255 (for sorting in reverse order). More than one byte may have the same sort weight. The .Fa table -argument -is useful for applications which wish to sort different characters +argument is useful for applications which wish to sort different characters equally, for example, providing a table with the same weights for A-Z as for a-z will result in a case-insensitive sort. If .Fa table is .Dv NULL , -the contents of the array are sorted in ascending order -according to the +the contents of the array are sorted in ascending order according to the .Tn ASCII order of the byte strings they reference and .Fa endbyte @@ -122,8 +118,7 @@ is not 0 or 255. .Pp Additionally, the .Fn sradixsort -function -may fail and set +function may fail and set .Va errno for any of the errors specified for the library routine .Xr malloc 3 . |