Article View: comp.sys.ibm.pc
Article #42826Re: scanf problem in TC v2.01.
From: david.a.klotzbach
Date: Wed, 21 Feb 1990 15:44
Date: Wed, 21 Feb 1990 15:44
12 lines
661 bytes
661 bytes
>
> ----- to cut ----- or not to cut -----
> main()
> {
> float f;
float atof(); /*<--try this and it all works just fine */
> char *string = "3.1415926";
>
> f = atof( string );
> printf( "pi = %f\n", f );
> }
> ----- be it here ----- or there -----
Technical Details
Message-ID:
<13317@cbnewsd.ATT.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!motcsd!motsj1!mcdchg!att!cbnewsd!klotzReferences:
<204@sdscal.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!sun-barr!apple!motcsd!motsj1!mcdchg!att!cbnewsd!klotz From: klotz@cbnewsd.ATT.COM (david.a.klotzbach) Newsgroups: comp.sys.ibm.pc Subject: Re: scanf problem in TC v2.01. Message-ID: <13317@cbnewsd.ATT.COM> Date: 21 Feb 90 15:44:19 GMT References: <204@sdscal.UUCP> Organization: AT&T Bell Laboratories Lines: 12