home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 13951 < prev    next >
Encoding:
Text File  |  1992-08-13  |  1.4 KB  |  37 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!stanford.edu!kronos.arc.nasa.gov!joshr
  3. From: joshr@kronos.arc.nasa.gov (Joshua Rabinowitz-Summer-91)
  4. Subject: Re: Pointer exercise works on Sun but not on Mac: Why?
  5. Message-ID: <1992Aug13.183301.19242@kronos.arc.nasa.gov>
  6. Sender: usenet@kronos.arc.nasa.gov (Will Edgington, wedgingt@ptolemy.arc.nasa.gov)
  7. Nntp-Posting-Host: kronos-arclan.arc.nasa.gov
  8. Organization: NASA/ARC Information Sciences Division
  9. References: <4439@news.duke.edu>
  10. Distribution: usa
  11. Date: Thu, 13 Aug 1992 18:33:01 GMT
  12. Lines: 23
  13.  
  14. In article <4439@news.duke.edu> tasavard@phy.duke.edu (Tom Savard) writes:
  15. >
  16. >I am learning how to program C with my Mac IIsi.  I wrote a program to test
  17. >my understanding of pointers.  The program works on our Sun but not on my
  18. >Mac with Think C 5.02.  I have tried turning off optimizations but the
  19. >program never works perfectly.  Sometimes it bombs when assigning the
  20. >pointers in the loop and sometimes at the end.  I have tried removing all
  21. [some deleted info>
  22.  
  23.  
  24. You must also #include <stdlib.h>, then it will work perfectly (I tried it).
  25. Admit it had me stumped for a moment.
  26.  
  27. Also, on macs, double precision math is _faster_ than math on floats.
  28.  
  29. joshr@kronos.arc.nasa.gov
  30.  
  31.  
  32. -- 
  33. ----------------------------------
  34. #include <std/disclaimer.h>     Josh Rabinowitz, Mac TCL programmer
  35. joshr@kronos.arc.nasa.gov
  36. "'I see', said the blind carpenter, as he picked up his hammer and saw".
  37.