summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjmc <>2005-10-26 11:37:58 +0000
committerjmc <>2005-10-26 11:37:58 +0000
commit6c1c5fcda39696691b9edb4d3a782d69c618d15a (patch)
tree787fbd177df1ca89771b12d36acf2c79a3bc62a3 /src
parente3931da1c5e17a3f0017666ac693b6252f746993 (diff)
downloadopenbsd-6c1c5fcda39696691b9edb4d3a782d69c618d15a.tar.gz
openbsd-6c1c5fcda39696691b9edb4d3a782d69c618d15a.tar.bz2
openbsd-6c1c5fcda39696691b9edb4d3a782d69c618d15a.zip
clarifications from ray lai;
tweaked by tedu@ and myself;
Diffstat (limited to 'src')
-rw-r--r--src/lib/libc/stdlib/strtonum.38
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/libc/stdlib/strtonum.3 b/src/lib/libc/stdlib/strtonum.3
index 11910a627c..93fc746ee2 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.11 2005/04/14 07:58:46 jmc Exp $ 1.\" $OpenBSD: strtonum.3,v 1.12 2005/10/26 11:37:58 jmc Exp $
2.\" 2.\"
3.\" Copyright (c) 2004 Ted Unangst 3.\" Copyright (c) 2004 Ted Unangst
4.\" 4.\"
@@ -77,7 +77,9 @@ The
77.Fn strtonum 77.Fn strtonum
78function returns the result of the conversion, 78function returns the result of the conversion,
79unless the value would exceed the provided bounds or is invalid. 79unless the value would exceed the provided bounds or is invalid.
80On error, 0 is returned and 80On error, 0 is returned,
81.Va errno
82is set, and
81.Fa errstr 83.Fa errstr
82will point to an error message. 84will point to an error message.
83.Fa *errstr 85.Fa *errstr
@@ -100,7 +102,7 @@ if (errstr)
100.Ed 102.Ed
101.Pp 103.Pp
102The above example will guarantee that the value of iterations is between 104The above example will guarantee that the value of iterations is between
1031 and 64. 1051 and 64 (inclusive).
104.Sh ERRORS 106.Sh ERRORS
105.Bl -tag -width Er 107.Bl -tag -width Er
106.It Bq Er ERANGE 108.It Bq Er ERANGE