summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authortobias <tobias@openbsd.org>2007-11-11 12:23:36 +0000
committertobias <tobias@openbsd.org>2007-11-11 12:23:36 +0000
commit10dbc30c927efb345c9b1f88d3d1d3b3717504d9 (patch)
tree3dd1a788fc2d69f41e19fdbd434399cc47b108ef /lib/libc/stdlib
parentsync (diff)
downloadwireguard-openbsd-10dbc30c927efb345c9b1f88d3d1d3b3717504d9.tar.xz
wireguard-openbsd-10dbc30c927efb345c9b1f88d3d1d3b3717504d9.zip
strtod may return HUGE_VAL on overflow, which is defined in math.h.
Therefore added math.h to SYNPOSIS. OK millert@
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/strtod.35
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/stdlib/strtod.3 b/lib/libc/stdlib/strtod.3
index ab96892261d..504307a624a 100644
--- a/lib/libc/stdlib/strtod.3
+++ b/lib/libc/stdlib/strtod.3
@@ -29,9 +29,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $OpenBSD: strtod.3,v 1.9 2007/05/31 19:19:31 jmc Exp $
+.\" $OpenBSD: strtod.3,v 1.10 2007/11/11 12:23:36 tobias Exp $
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: November 11 2007 $
.Dt STRTOD 3
.Os
.Sh NAME
@@ -40,6 +40,7 @@
.Tn ASCII
string to double
.Sh SYNOPSIS
+.Fd #include <math.h>
.Fd #include <stdlib.h>
.Ft double
.Fn strtod "const char *nptr" "char **endptr"