Browse Source

strtod may return HUGE_VAL on overflow, which is defined in math.h.

Therefore added math.h to SYNPOSIS.
OK millert@
OPENBSD_4_3
tobias 16 years ago
parent
commit
c9440635f0
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/lib/libc/stdlib/strtod.3

+ 3
- 2
src/lib/libc/stdlib/strtod.3 View File

@ -29,9 +29,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" 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 .Dt STRTOD 3
.Os .Os
.Sh NAME .Sh NAME
@ -40,6 +40,7 @@
.Tn ASCII .Tn ASCII
string to double string to double
.Sh SYNOPSIS .Sh SYNOPSIS
.Fd #include <math.h>
.Fd #include <stdlib.h> .Fd #include <stdlib.h>
.Ft double .Ft double
.Fn strtod "const char *nptr" "char **endptr" .Fn strtod "const char *nptr" "char **endptr"


Loading…
Cancel
Save