strtod setting errno to EDOM?
Roland McGrath
mcgrath at rosemary.Berkeley.EDU
Sat Jun 4 13:13:20 AEST 1988
I just noticed in the Rationale (of the Jan 88 draft) the sentence
about `strtod':
The requirement that errno be set to EDOM when the argument
string does not begin with a valid number string allows easy checking
for invalid input. (4.10.1.4, Rationale)
However, this requirement is not made in the Standard proper for
strtod or for strtol or stroul (the section for strtol in the
Rationale says ``See 4.10.1.4'').
Is this actually required or not?
Roland McGrath
roland at wheaties.ai.mit.edu, mit-eddie!wheaties.ai.mit.edu!roland
More information about the Comp.lang.c
mailing list