Path: utzoo!attcan!uunet!munnari!murdu!strasser From: strasser@murdu.OZ (Mike Strasser) Newsgroups: comp.sys.mac.programmer Subject: Re: LSC malloc returning garbage? Keywords: All's well that ends well Message-ID: <1453@murdu.OZ> Date: 11 Sep 88 10:38:33 GMT References: <1451@murdu.OZ> <327@husc6.harvard.edu> Reply-To: strasser@murdu.UUCP (Mike Strasser) Organization: Forestry Section, University of Melbourne Lines: 20 Thanks to the people who responded to my problem with malloc(). I had a number of bugs in the program (including writing much information to an unintialized output stream because I accidentally deleted the initialization code!!), but malloc() did need to be declared, and using "%lx" instead of "%x" in my printf statement showed that the high-word of the addresses was indeed 3! Now I just need to trim the number of floating point calls so the thing doesn't run so s--l--o--w. It (a forest modelling program) has to run on SEs for a student prac, so I don't have the luxury of using our Mac II all the time. --------------------------------------------------------------------------- Mike Strasser ACSnet, CSnet: strasser@murdu.oz Internet: strasser%murdu.oz@uunet.uu.net Forestry Section University of Melbourne Creswick, Victoria. 3363 Phone: (053) 45 2405 A u s t r a l i a +61 53 45 2405 ---------------------------------------------------------------------------