home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!usc!rpi!usenet.coe.montana.edu!Msu.oscs.montana.edu!gjb7307
- From: gjb7307@Msu.oscs.montana.edu
- Subject: Re: turboc
- Message-ID: <009654BB.916C2680@Msu.oscs.montana.edu>
- Sender: usenet@coe.montana.edu (USENET News System)
- Reply-To: gjb7307@Msu.oscs.montana.edu
- Organization: Montana State University
- References: <1992Dec18.140840.891@nrlvx1.nrl.navy.mil>
- Date: Sat, 19 Dec 1992 07:18:28 GMT
- Lines: 22
-
- In article <1992Dec18.140840.891@nrlvx1.nrl.navy.mil>, donohue@nrlvx1.nrl.navy.mil writes:
- >This is a followup to the turbo C question I had posted earlier
- >This code works in vax C, but when it is called in turbo c it produces
- >a float
-
- add this code
-
- float f1;
- sscanf("3.1","%f",&f1);
-
- to link in the floating point package (for real)
- or see page 281 of the Programmer's Guide
-
- and, ignore people who don't like gotos. i don't
- use them but they do have their place and they
- are not inefficient. the source code for most of your
- standard libraries even contains goto statements.
- i might've written it differently myself but that's
- irrelevant. bye
-
- flame on
-
-