diff options
author | tedu <> | 2005-04-14 02:13:29 +0000 |
---|---|---|
committer | tedu <> | 2005-04-14 02:13:29 +0000 |
commit | 1e6ad800accc74c633e9271255bdc909b9c1bb90 (patch) | |
tree | 02773220742b8a20ad2d8fbdbbc1cda12c0b54c5 /src | |
parent | 06bba6dbe6c76c4f1d586d8a99aae186b5ee6fe5 (diff) | |
download | openbsd-1e6ad800accc74c633e9271255bdc909b9c1bb90.tar.gz openbsd-1e6ad800accc74c633e9271255bdc909b9c1bb90.tar.bz2 openbsd-1e6ad800accc74c633e9271255bdc909b9c1bb90.zip |
make it crystal clear that errstr is NULL after success
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 |