home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / amiga / programm / 17354 < prev    next >
Encoding:
Internet Message Format  |  1992-12-14  |  879 b 

  1. Path: sparky!uunet!munnari.oz.au!comp.vuw.ac.nz!actrix!templar!jbickers
  2. From: jbickers@templar.actrix.gen.nz (John Bickers)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: HELP - malloc, realloc
  5. References:  <Douglas_Stockman.1l2o@grace.UUCP>
  6. Message-ID: <jbickers.0l91@templar.actrix.gen.nz>
  7. Date: 15 Dec 92 08:42:28 PST
  8. Organization: TAP
  9. Lines: 13
  10.  
  11. Quoted from <Douglas_Stockman.1l2o@grace.UUCP> by Douglas_Stockman@grace.UUCP (Douglas Stockman):
  12.  
  13. > working without any enforcer hits for malloc() and free() of ***ptr, but I
  14. > am not having much luck correctly enlarging the buffer using realloc().  I
  15.  
  16.     You should be able to get away with:
  17.  
  18.         ptr = (cast)realloc(ptr,newsize);
  19.  
  20.     What goes wrong with that?
  21. --
  22. *** John Bickers, TAP.                   jbickers@templar.actrix.gen.nz ***
  23. ***    "Radioactivity - It's in the air, for you and me" - Kraftwerk    ***
  24.