summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libc/stdlib/strtonum.317
1 files changed, 10 insertions, 7 deletions
diff --git a/src/lib/libc/stdlib/strtonum.3 b/src/lib/libc/stdlib/strtonum.3
index f6e7b8222c..08c58b256e 100644
--- a/src/lib/libc/stdlib/strtonum.3
+++ b/src/lib/libc/stdlib/strtonum.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: strtonum.3,v 1.8 2004/11/22 00:58:39 jmc Exp $ 1.\" $OpenBSD: strtonum.3,v 1.9 2005/02/07 08:54:59 jmc Exp $
2.\" 2.\"
3.\" Copyright (c) 2004 Ted Unangst 3.\" Copyright (c) 2004 Ted Unangst
4.\" 4.\"
@@ -107,13 +107,16 @@ was larger than
107.Ar maxval . 107.Ar maxval .
108.El 108.El
109.Pp 109.Pp
110If an error occurs, errstr will be set to one of the following strings. 110If an error occurs,
111.Bl -tag -width "too large" 111.Fa errstr
112.It "too large" 112will be set to one of the following strings:
113.Pp
114.Bl -tag -width "too largeXX" -compact
115.It too large
113The result was larger than the provided maximum value. 116The result was larger than the provided maximum value.
114.It "too small" 117.It too small
115The result was smaller than the provided minimum value. 118The result was smaller than the provided minimum value.
116.It "invalid" 119.It invalid
117The string did not consist solely of digit characters. 120The string did not consist solely of digit characters.
118.El 121.El
119.Sh SEE ALSO 122.Sh SEE ALSO
@@ -133,7 +136,7 @@ extension.
133The existing alternatives, such as 136The existing alternatives, such as
134.Xr atoi 3 137.Xr atoi 3
135and 138and
136.Xr strtol 3 139.Xr strtol 3 ,
137are either impossible or difficult to use safely. 140are either impossible or difficult to use safely.
138.Sh HISTORY 141.Sh HISTORY
139The 142The