[comp.lang.c] strtod setting errno to EDOM?

mcgrath@rosemary.Berkeley.EDU (Roland McGrath) (06/04/88)

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@wheaties.ai.mit.edu, mit-eddie!wheaties.ai.mit.edu!roland

gwyn@brl-smoke.UUCP (06/05/88)

In article <24522@ucbvax.BERKELEY.EDU> mcgrath@rosemary.Berkeley.EDU (Roland McGrath) writes:
>I just noticed in the Rationale ...:
>	The requirement that errno be set to EDOM when ...
>Is this actually required or not?

As you have already observed, it is not required by the proposed Standard.
This appears to be a historical vestige that needs to be removed from the
Rationale.