home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!comp.vuw.ac.nz!actrix!templar!jbickers
- From: jbickers@templar.actrix.gen.nz (John Bickers)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: HELP - malloc, realloc
- References: <Douglas_Stockman.1l2o@grace.UUCP>
- Message-ID: <jbickers.0l91@templar.actrix.gen.nz>
- Date: 15 Dec 92 08:42:28 PST
- Organization: TAP
- Lines: 13
-
- Quoted from <Douglas_Stockman.1l2o@grace.UUCP> by Douglas_Stockman@grace.UUCP (Douglas Stockman):
-
- > working without any enforcer hits for malloc() and free() of ***ptr, but I
- > am not having much luck correctly enlarging the buffer using realloc(). I
-
- You should be able to get away with:
-
- ptr = (cast)realloc(ptr,newsize);
-
- What goes wrong with that?
- --
- *** John Bickers, TAP. jbickers@templar.actrix.gen.nz ***
- *** "Radioactivity - It's in the air, for you and me" - Kraftwerk ***
-