summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdlib/strtonum.38
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libc/stdlib/strtonum.3 b/lib/libc/stdlib/strtonum.3
index 11910a627ce..93fc746ee2e 100644
--- a/lib/libc/stdlib/strtonum.3
+++ b/lib/libc/stdlib/strtonum.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: strtonum.3,v 1.11 2005/04/14 07:58:46 jmc Exp $
+.\" $OpenBSD: strtonum.3,v 1.12 2005/10/26 11:37:58 jmc Exp $
.\"
.\" Copyright (c) 2004 Ted Unangst
.\"
@@ -77,7 +77,9 @@ The
.Fn strtonum
function returns the result of the conversion,
unless the value would exceed the provided bounds or is invalid.
-On error, 0 is returned and
+On error, 0 is returned,
+.Va errno
+is set, and
.Fa errstr
will point to an error message.
.Fa *errstr
@@ -100,7 +102,7 @@ if (errstr)
.Ed
.Pp
The above example will guarantee that the value of iterations is between
-1 and 64.
+1 and 64 (inclusive).
.Sh ERRORS
.Bl -tag -width Er
.It Bq Er ERANGE