home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / programm / 18140 < prev    next >
Encoding:
Internet Message Format  |  1993-01-05  |  808 b 

  1. Path: sparky!uunet!munnari.oz.au!uniwa!uniwa!nfm
  2. From: gujn@uniwa.uwa.edu.au (Jeremy Nelson)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: How to allocate memory nicely?
  5. Date: 5 Jan 1993 10:39:46 +0800
  6. Organization: The University of Western Australia
  7. Lines: 11
  8. Message-ID: <1iasdiINN754@uniwa.uwa.edu.au>
  9. NNTP-Posting-Host: uniwa.uwa.edu.au
  10.  
  11. This is probably a simple question for the programmers, so reply by news
  12. or mail as you see fit...
  13.  
  14. How should I allocate memory for short strings of, say, 15 characters or
  15. so without unnecessarily fragmenting the memory?   Should I request 1k
  16. chunks and doll it out as necessary?  And how small is too small?
  17.  
  18. Help from the experienced would be appreciated.  Thanks. (I'm talking 
  19. C of course. :)
  20. -- 
  21. Jem.  Jeremy Nelson.  gujn@uniwa.uwa.edu.au       :\  =>  :) 
  22.