Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!intercon!amanda@intercon.uu.net From: amanda@intercon.uu.net (Amanda Walker) Newsgroups: comp.sys.mac.hypercard Subject: Re: malloc in XFCN Message-ID: <1157@intercon.UUCP> Date: 6 Jul 89 15:20:04 GMT References: <4256@tekcrl.LABS.TEK.COM> Sender: news@intercon.UUCP Reply-To: amanda@intercon.uu.net (Amanda Walker) Organization: InterCon Systems Corporation Lines: 13 In article <4256@tekcrl.LABS.TEK.COM>, garyb@tekcrl.LABS.TEK.COM (Gary Beaver) writes: > Is it possible to create an XFCN which dynamically > allocates memory with the standard library function, malloc? If not, are > there any relatively simple workarounds? The simplest thing is probably to use the Memory Manager directly. The calls that are closest to malloc() and free() are NewPtr() and DisposPtr(). -- Amanda Walker InterCon Systems Corporation amanda@intercon.uu.net | ...!uunet!intercon!amanda