Xref: utzoo comp.lang.c:10607 comp.std.c:40
Path: utzoo!dciem!nrcaer!scs!spl1!laidbak!att!pacbell!ames!pasteur!ucbvax!rosemary.Berkeley.EDU!mcgrath
From: mcgrath@rosemary.Berkeley.EDU (Roland McGrath)
Newsgroups: comp.lang.c,comp.std.c
Subject: strtod setting errno to EDOM?
Message-ID: <24522@ucbvax.BERKELEY.EDU>
Date: 4 Jun 88 03:13:20 GMT
Article-I.D.: ucbvax.24522
Sender: usenet@ucbvax.BERKELEY.EDU
Reply-To: mcgrath@rosemary.Berkeley.EDU (Roland McGrath)
Organization: Hackers Anonymous International, Ltd., Inc. (Applications welcome)
Lines: 15


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