Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!sharkey!dino!uxc.cso.uiuc.edu!uxc.cso.uiuc.edu!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!jpd00964 From: jpd00964@uxa.cso.uiuc.edu Newsgroups: comp.sys.mac.programmer Subject: Re: malloc in LSC Message-ID: <227700011@uxa.cso.uiuc.edu> Date: 20 Jul 89 23:03:57 GMT References: <73300002@m.cs.uiuc.edu> Lines: 14 Nf-ID: #R:m.cs.uiuc.edu:73300002:uxa.cso.uiuc.edu:227700011:000:438 Nf-From: uxa.cso.uiuc.edu!jpd00964 Jul 19 16:53:00 1989 > Are there any known problems with malloc, calloc, etc in LSC? > At first, malloc() was returning suspiciously low addresses (4 digit hex > numbers, so < 64K). I had a similiar problem. Make sure you are including stdio.h or it will give you an integer instead of a long as the return value. You can detect this because all of your values will be 16 bits or <64K. Better method is to just call NewPtr(); Michael Rutman Softmed