Project

General

Profile

Bug #13699

strtod(3c)/wcstod(3c) man pages should mention math.h

Added by Marcel Telka 14 days ago. Updated 14 days ago.

Status:
In Progress
Priority:
Low
Assignee:
Category:
manpage - manual pages
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

In both strtod(3c) and wcstod(3c) man pages there is this wording:

       If the correct value is outside the range of representable values,
       ±HUGE_VAL, ±HUGE_VALF, or ±HUGE_VALL is returned (according to the sign
       of the value), a floating point overflow exception is raised, and errno
       is set to ERANGE.

The problem is that those constants (HUGE_VAL, HUGE_VALF, and HUGE_VALL) are not readily available when there is just stdlib.h or wchar.h included respectively (as suggested by the man pages synopsis) because they are defined in math.h, but math.h is not mentioned anywhere in either man page. We should change that.

#1

Updated by Electric Monk 14 days ago

  • Gerrit CR set to 1403
#3

Updated by Marcel Telka 14 days ago

Testing

I reviewed the manpages using the following commands:

MANPATH=usr/src/man man strtod
MANPATH=usr/src/man man wcstod

Nightly passed.

Also available in: Atom PDF