summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorjmc <jmc@openbsd.org>2005-02-07 08:54:59 +0000
committerjmc <jmc@openbsd.org>2005-02-07 08:54:59 +0000
commit992664a4c3d893a133e7b1ec4a462035c24e8596 (patch)
tree580d236a67a67761c3e4cf66488c8665152317eb /lib/libc/stdlib
parentDue to a braindead zlib, the test for seekability of a gzstream using (diff)
downloadwireguard-openbsd-992664a4c3d893a133e7b1ec4a462035c24e8596.tar.xz
wireguard-openbsd-992664a4c3d893a133e7b1ec4a462035c24e8596.zip
tidy up ERRORS and STANDARDS;
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/strtonum.317
1 files changed, 10 insertions, 7 deletions
diff --git a/lib/libc/stdlib/strtonum.3 b/lib/libc/stdlib/strtonum.3
index f6e7b8222c1..08c58b256ed 100644
--- a/lib/libc/stdlib/strtonum.3
+++ b/lib/libc/stdlib/strtonum.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: strtonum.3,v 1.8 2004/11/22 00:58:39 jmc Exp $
+.\" $OpenBSD: strtonum.3,v 1.9 2005/02/07 08:54:59 jmc Exp $
.\"
.\" Copyright (c) 2004 Ted Unangst
.\"
@@ -107,13 +107,16 @@ was larger than
.Ar maxval .
.El
.Pp
-If an error occurs, errstr will be set to one of the following strings.
-.Bl -tag -width "too large"
-.It "too large"
+If an error occurs,
+.Fa errstr
+will be set to one of the following strings:
+.Pp
+.Bl -tag -width "too largeXX" -compact
+.It too large
The result was larger than the provided maximum value.
-.It "too small"
+.It too small
The result was smaller than the provided minimum value.
-.It "invalid"
+.It invalid
The string did not consist solely of digit characters.
.El
.Sh SEE ALSO
@@ -133,7 +136,7 @@ extension.
The existing alternatives, such as
.Xr atoi 3
and
-.Xr strtol 3
+.Xr strtol 3 ,
are either impossible or difficult to use safely.
.Sh HISTORY
The