home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / c / 18670 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.1 KB  |  35 lines

  1. Newsgroups: comp.lang.c
  2. Path: sparky!uunet!usc!rpi!usenet.coe.montana.edu!Msu.oscs.montana.edu!gjb7307
  3. From: gjb7307@Msu.oscs.montana.edu
  4. Subject: Re: turboc
  5. Message-ID: <009654BB.916C2680@Msu.oscs.montana.edu>
  6. Sender: usenet@coe.montana.edu (USENET News System)
  7. Reply-To: gjb7307@Msu.oscs.montana.edu
  8. Organization: Montana State University
  9. References: <1992Dec18.140840.891@nrlvx1.nrl.navy.mil>
  10. Date: Sat, 19 Dec 1992 07:18:28 GMT
  11. Lines: 22
  12.  
  13. In article <1992Dec18.140840.891@nrlvx1.nrl.navy.mil>, donohue@nrlvx1.nrl.navy.mil writes:
  14. >This is a followup to the turbo C question I had posted earlier
  15. >This code works in vax C, but when it is called in turbo c it produces 
  16. >a float
  17.  
  18. add this code
  19.  
  20. float f1;
  21. sscanf("3.1","%f",&f1);
  22.  
  23. to link in the floating point package (for real)
  24. or see page 281 of the Programmer's Guide
  25.  
  26. and, ignore people who don't like gotos.  i don't
  27. use them but they do have their place and they
  28. are not inefficient.  the source code for most of your
  29. standard libraries even contains goto statements.
  30. i might've written it differently myself but that's
  31. irrelevant.  bye
  32.  
  33. flame on
  34.  
  35.