summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortedu <>2005-04-14 02:13:29 +0000
committertedu <>2005-04-14 02:13:29 +0000
commit1e6ad800accc74c633e9271255bdc909b9c1bb90 (patch)
tree02773220742b8a20ad2d8fbdbbc1cda12c0b54c5 /src
parent06bba6dbe6c76c4f1d586d8a99aae186b5ee6fe5 (diff)
downloadopenbsd-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.35
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.
80On error, 0 is returned and 80On error, 0 is returned and
81.Fa errstr 81.Fa errstr
82will point to an error message. 82will point to an error message.
83.Fa *errstr
84will be set to NULL on success; this fact can be used to differentiate
85a successful return of 0 from an error.
83.Sh EXAMPLES 86.Sh EXAMPLES
84Using 87Using
85.Fn strtonum 88.Fn strtonum