diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libc/stdlib/strtonum.3 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libc/stdlib/strtonum.3 b/src/lib/libc/stdlib/strtonum.3 index 08c58b256e..ef089da071 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.9 2005/02/07 08:54:59 jmc Exp $ | 1 | .\" $OpenBSD: strtonum.3,v 1.10 2005/04/14 02:13:29 tedu Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 2004 Ted Unangst | 3 | .\" Copyright (c) 2004 Ted Unangst |
4 | .\" | 4 | .\" |
@@ -80,6 +80,9 @@ unless the value would exceed the provided bounds or is invalid. | |||
80 | On error, 0 is returned and | 80 | On error, 0 is returned and |
81 | .Fa errstr | 81 | .Fa errstr |
82 | will point to an error message. | 82 | will point to an error message. |
83 | .Fa *errstr | ||
84 | will be set to NULL on success; this fact can be used to differentiate | ||
85 | a successful return of 0 from an error. | ||
83 | .Sh EXAMPLES | 86 | .Sh EXAMPLES |
84 | Using | 87 | Using |
85 | .Fn strtonum | 88 | .Fn strtonum |