Module Name: src
Committed By: wiz
Date: Sun May 3 12:28:20 UTC 2015
Modified Files:
src/lib/libc/stdlib: strtou.3
Log Message:
Sort ERRORS and SEE ALSO.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/stdlib/strtou.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/stdlib/strtou.3
diff -u src/lib/libc/stdlib/strtou.3:1.1 src/lib/libc/stdlib/strtou.3:1.2
--- src/lib/libc/stdlib/strtou.3:1.1 Fri May 1 14:17:56 2015
+++ src/lib/libc/stdlib/strtou.3 Sun May 3 12:28:20 2015
@@ -1,4 +1,4 @@
-.\" $NetBSD: strtou.3,v 1.1 2015/05/01 14:17:56 christos Exp $
+.\" $NetBSD: strtou.3,v 1.2 2015/05/03 12:28:20 wiz Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@@ -40,7 +40,7 @@
.Dt STRTOU 3
.Os
.Sh NAME
-.Nm strtou
+.Nm strtou
.Nd convert a string to an uintmax_t integer
.Sh LIBRARY
.Lb libc
@@ -170,21 +170,20 @@ if (e)
.Ed
.Sh ERRORS
.Bl -tag -width Er
+.It Bq Er ECANCELED
+The string did not contain any characters that were converted.
.It Bq Er EINVAL
The
.Ar base
is not between 2 and 36 and does not contain the special value 0.
-.It Bq Er ERANGE
-The given string was out of range; the value converted has been clamped.
-.It Bq Er ECANCELED
-The string did not contain any characters that were converted.
.It Bq Er ENOTSUP
The string contained non-numeric characters that did not get converted.
In this case,
.Fa endptr
points to the first unconverted character.
.It Bq Er ERANGE
-The range given was invalid, i.e.
+The given string was out of range; the value converted has been clamped; or
+the range given was invalid, i.e.
.Fa lo
\*[Gt]
.Fa hi .
@@ -196,9 +195,9 @@ The range given was invalid, i.e.
.Xr atoll 3 ,
.Xr strtod 3 ,
.Xr strtoi 3 ,
+.Xr strtoimax 3 ,
.Xr strtol 3 ,
.Xr strtoll 3 ,
-.Xr strtoimax 3 ,
.Xr strtoul 3 ,
.Xr strtoull 3 ,
.Xr strtoumax 3