diff options
Diffstat (limited to 'src/lib/libc')
| -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 | 
