Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwvax!zazen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!usc!snorkelwacker.mit.edu!apple!motcsd!mcdcup!mcdchg!laidbak!tellab5!kenk From: kenk@tellabs.com (Ken Konecki) Newsgroups: comp.sys.mac.programmer Subject: Re: Novice question about malloc() in Think C Message-ID: <5420@tellab5.tellabs.com> Date: 26 Feb 91 18:19:56 GMT References: <1991Feb25.103404.3662@Neon.Stanford.EDU> Sender: news@Tellabs.COM Distribution: usa Organization: Tellabs, Inc. Lisle, IL Lines: 14 In article <1991Feb25.103404.3662@Neon.Stanford.EDU> gjohn@Neon.Stanford.EDU (George H. John) writes: >If I replace the malloc with NewPtr, things work fine, but it >doesn't seem right ... [to] forget >to write a working malloc(). Make sure you #include . I had problems with malloc too, and they magically went away when I included the stdlib.h file. Cheers, -Ken K -- Ken Konecki "Eat well, stay fit, and die anyway" e-mail:kenk@tellabs.com -or- ...!uunet!tellab5!kenk