diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2005-04-14 02:13:30 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2005-04-14 02:13:30 +0000 |
commit | 86f056093e4bd0009c6f251112e67a01218e5c5c (patch) | |
tree | 45d8dd78084890451f4c19a3c277a2d76bd35361 | |
parent | 9609b6d4441f0f950da1655f5f1a6817463c3563 (diff) |
make it crystal clear that errstr is NULL after success
-rw-r--r-- | lib/libc/stdlib/strtonum.3 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libc/stdlib/strtonum.3 b/lib/libc/stdlib/strtonum.3 index 08c58b256ed..ef089da071e 100644 --- a/lib/libc/stdlib/strtonum.3 +++ b/lib/libc/stdlib/strtonum.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: strtonum.3,v 1.9 2005/02/07 08:54:59 jmc Exp $ +.\" $OpenBSD: strtonum.3,v 1.10 2005/04/14 02:13:29 tedu Exp $ .\" .\" Copyright (c) 2004 Ted Unangst .\" @@ -80,6 +80,9 @@ unless the value would exceed the provided bounds or is invalid. On error, 0 is returned and .Fa errstr will point to an error message. +.Fa *errstr +will be set to NULL on success; this fact can be used to differentiate +a successful return of 0 from an error. .Sh EXAMPLES Using .Fn strtonum |