summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/radixsort.3
diff options
context:
space:
mode:
authoraaron <>1999-06-29 18:36:24 +0000
committeraaron <>1999-06-29 18:36:24 +0000
commit5771e6280ed94b6457e5db9facb5899254e4fb7f (patch)
tree95397a7ed19a0cddf5a2ebb73dee20cf20fe2c29 /src/lib/libc/stdlib/radixsort.3
parent403f5844d16c63a63b8ce33a354e4871cb93df4c (diff)
downloadopenbsd-5771e6280ed94b6457e5db9facb5899254e4fb7f.tar.gz
openbsd-5771e6280ed94b6457e5db9facb5899254e4fb7f.tar.bz2
openbsd-5771e6280ed94b6457e5db9facb5899254e4fb7f.zip
first round of repairs on stdlib
Diffstat (limited to 'src/lib/libc/stdlib/radixsort.3')
-rw-r--r--src/lib/libc/stdlib/radixsort.311
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/libc/stdlib/radixsort.3 b/src/lib/libc/stdlib/radixsort.3
index 8b0ea89a0f..a1a4ee4eab 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.4 1998/06/15 17:55:08 mickey Exp $ 32.\" $OpenBSD: radixsort.3,v 1.5 1999/06/29 18:36:22 aaron Exp $
33.\" 33.\"
34.Dd January 27, 1994 34.Dd January 27, 1994
35.Dt RADIXSORT 3 35.Dt RADIXSORT 3
@@ -62,8 +62,7 @@ is denoted by the user-specified value
62Applications may specify a sort order by providing the 62Applications may specify a sort order by providing the
63.Fa table 63.Fa table
64argument. 64argument.
65If 65If non-null,
66.Pf non- Dv NULL ,
67.Fa table 66.Fa table
68must reference an array of 67must reference an array of
69.Dv UCHAR_MAX 68.Dv UCHAR_MAX
@@ -80,7 +79,9 @@ equally, for example, providing a table with the same weights
80for A-Z as for a-z will result in a case-insensitive sort. 79for A-Z as for a-z will result in a case-insensitive sort.
81If 80If
82.Fa table 81.Fa table
83is NULL, the contents of the array are sorted in ascending order 82is
83.Dv NULL ,
84the contents of the array are sorted in ascending order
84according to the 85according to the
85.Tn ASCII 86.Tn ASCII
86order of the byte strings they reference and 87order of the byte strings they reference and
@@ -106,7 +107,7 @@ particular, see D.E. Knuth's Algorithm R and section 5.2.5, exercise 10.
106They take linear time relative to the number of bytes in the strings. 107They take linear time relative to the number of bytes in the strings.
107.Sh RETURN VALUES 108.Sh RETURN VALUES
108Upon successful completion 0 is returned. 109Upon successful completion 0 is returned.
109Otherwise, \-1 is returned and the global variable 110Otherwise, \-1 is returned and the global variable
110.Va errno 111.Va errno
111is set to indicate the error. 112is set to indicate the error.
112.Sh ERRORS 113.Sh ERRORS