Path: utzoo!attcan!uunet!husc6!rutgers!att!ulysses!andante!alice!ark From: ark@alice.UUCP (Andrew Koenig) Newsgroups: comp.lang.c Subject: Re: #include Keywords: something extra... Message-ID: <8587@alice.UUCP> Date: 22 Dec 88 22:12:26 GMT References: <354@greens.UUCP> <175@wzv.UUCP> Organization: AT&T Bell Laboratories, Liberty Corner NJ Lines: 19 In article <175@wzv.UUCP>, wietse@wzv.UUCP (Wietse Z. Venema) writes: > int isfloat(s) /* wants a null-terminated string with f.p. number */ > char *s; > { > char junk = 0; > float fval; > return (sscanf(s,"%f%c",&fval,&junk) == 1); > } Nope, this one doesn't work either. Give it something like "1e500" and it dumps core due to a floating-point overflow. -- --Andrew Koenig ark@europa.att.com