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