diff options
author | Jason McIntyre <jmc@cvs.openbsd.org> | 2005-10-26 11:37:59 +0000 |
---|---|---|
committer | Jason McIntyre <jmc@cvs.openbsd.org> | 2005-10-26 11:37:59 +0000 |
commit | 0ceb9e830d07594af07bdc18f17408b4a3812211 (patch) | |
tree | bfa0813170935799ff6265c3e0a70dc6e2952c42 /lib/libc/stdlib | |
parent | 0a39a6b171e513db18b82d2aa16deee377802759 (diff) |
clarifications from ray lai;
tweaked by tedu@ and myself;
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r-- | lib/libc/stdlib/strtonum.3 | 8 |
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 |