diff options
author | aaron <> | 2000-04-20 13:50:03 +0000 |
---|---|---|
committer | aaron <> | 2000-04-20 13:50:03 +0000 |
commit | a4336f357f9e30dffdfad4909b24bd2e82c096a2 (patch) | |
tree | c79a224a41eb2c48668c4b4eda84163d7daadf64 /src/lib/libc/stdlib/radixsort.3 | |
parent | 92b3e44bedaf5a5f85880565a47206cdbf9bfa2a (diff) | |
download | openbsd-a4336f357f9e30dffdfad4909b24bd2e82c096a2.tar.gz openbsd-a4336f357f9e30dffdfad4909b24bd2e82c096a2.tar.bz2 openbsd-a4336f357f9e30dffdfad4909b24bd2e82c096a2.zip |
Flesh out stdlib function man pages.
Diffstat (limited to 'src/lib/libc/stdlib/radixsort.3')
-rw-r--r-- | src/lib/libc/stdlib/radixsort.3 | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/lib/libc/stdlib/radixsort.3 b/src/lib/libc/stdlib/radixsort.3 index a1a4ee4eab..64cc841a49 100644 --- a/src/lib/libc/stdlib/radixsort.3 +++ b/src/lib/libc/stdlib/radixsort.3 | |||
@@ -29,7 +29,7 @@ | |||
29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
30 | .\" SUCH DAMAGE. | 30 | .\" SUCH DAMAGE. |
31 | .\" | 31 | .\" |
32 | .\" $OpenBSD: radixsort.3,v 1.5 1999/06/29 18:36:22 aaron Exp $ | 32 | .\" $OpenBSD: radixsort.3,v 1.6 2000/04/20 13:50:02 aaron Exp $ |
33 | .\" | 33 | .\" |
34 | .Dd January 27, 1994 | 34 | .Dd January 27, 1994 |
35 | .Dt RADIXSORT 3 | 35 | .Dt RADIXSORT 3 |
@@ -49,8 +49,7 @@ The | |||
49 | .Fn radixsort | 49 | .Fn radixsort |
50 | and | 50 | and |
51 | .Fn sradixsort | 51 | .Fn sradixsort |
52 | functions | 52 | functions are implementations of radix sort. |
53 | are implementations of radix sort. | ||
54 | .Pp | 53 | .Pp |
55 | These functions sort an array of pointers to byte strings, the initial | 54 | These functions sort an array of pointers to byte strings, the initial |
56 | member of which is referenced by | 55 | member of which is referenced by |
@@ -66,23 +65,20 @@ If non-null, | |||
66 | .Fa table | 65 | .Fa table |
67 | must reference an array of | 66 | must reference an array of |
68 | .Dv UCHAR_MAX | 67 | .Dv UCHAR_MAX |
69 | + 1 bytes which contains the sort | 68 | + 1 bytes which contains the sort weight of each possible byte value. |
70 | weight of each possible byte value. | ||
71 | The end-of-string byte must have a sort weight of 0 or 255 | 69 | The end-of-string byte must have a sort weight of 0 or 255 |
72 | (for sorting in reverse order). | 70 | (for sorting in reverse order). |
73 | More than one byte may have the same sort weight. | 71 | More than one byte may have the same sort weight. |
74 | The | 72 | The |
75 | .Fa table | 73 | .Fa table |
76 | argument | 74 | argument is useful for applications which wish to sort different characters |
77 | is useful for applications which wish to sort different characters | ||
78 | equally, for example, providing a table with the same weights | 75 | equally, for example, providing a table with the same weights |
79 | for A-Z as for a-z will result in a case-insensitive sort. | 76 | for A-Z as for a-z will result in a case-insensitive sort. |
80 | If | 77 | If |
81 | .Fa table | 78 | .Fa table |
82 | is | 79 | is |
83 | .Dv NULL , | 80 | .Dv NULL , |
84 | the contents of the array are sorted in ascending order | 81 | the contents of the array are sorted in ascending order according to the |
85 | according to the | ||
86 | .Tn ASCII | 82 | .Tn ASCII |
87 | order of the byte strings they reference and | 83 | order of the byte strings they reference and |
88 | .Fa endbyte | 84 | .Fa endbyte |
@@ -122,8 +118,7 @@ is not 0 or 255. | |||
122 | .Pp | 118 | .Pp |
123 | Additionally, the | 119 | Additionally, the |
124 | .Fn sradixsort | 120 | .Fn sradixsort |
125 | function | 121 | function may fail and set |
126 | may fail and set | ||
127 | .Va errno | 122 | .Va errno |
128 | for any of the errors specified for the library routine | 123 | for any of the errors specified for the library routine |
129 | .Xr malloc 3 . | 124 | .Xr malloc 3 . |