diff options
author | jmc <> | 2005-10-26 11:37:58 +0000 |
---|---|---|
committer | jmc <> | 2005-10-26 11:37:58 +0000 |
commit | 6c1c5fcda39696691b9edb4d3a782d69c618d15a (patch) | |
tree | 787fbd177df1ca89771b12d36acf2c79a3bc62a3 | |
parent | e3931da1c5e17a3f0017666ac693b6252f746993 (diff) | |
download | openbsd-6c1c5fcda39696691b9edb4d3a782d69c618d15a.tar.gz openbsd-6c1c5fcda39696691b9edb4d3a782d69c618d15a.tar.bz2 openbsd-6c1c5fcda39696691b9edb4d3a782d69c618d15a.zip |
clarifications from ray lai;
tweaked by tedu@ and myself;
-rw-r--r-- | src/lib/libc/stdlib/strtonum.3 | 8 |
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 |
78 | function returns the result of the conversion, | 78 | function returns the result of the conversion, |
79 | unless the value would exceed the provided bounds or is invalid. | 79 | unless the value would exceed the provided bounds or is invalid. |
80 | On error, 0 is returned and | 80 | On error, 0 is returned, |
81 | .Va errno | ||
82 | is set, and | ||
81 | .Fa errstr | 83 | .Fa errstr |
82 | will point to an error message. | 84 | will 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 |
102 | The above example will guarantee that the value of iterations is between | 104 | The above example will guarantee that the value of iterations is between |
103 | 1 and 64. | 105 | 1 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 |