home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / atari / st / tech / 6565 < prev    next >
Encoding:
Text File  |  1993-01-09  |  1.5 KB  |  33 lines

  1. Newsgroups: comp.sys.atari.st.tech
  2. Path: sparky!uunet!math.fu-berlin.de!freia.sax.de!hohmuth
  3. From: hohmuth@freia.sax.de (Michael Hohmuth)
  4. Subject: Re: Malloc (Was: Sending objc_draw to a buffer)
  5. Message-ID: <NQM0FPN@math.fu-berlin.de>
  6. Sender: news@math.fu-berlin.de (Math Department)
  7. Reply-To: hohmuth@freia.inf.tu-dresden.de
  8. Organization: Dept. of Computer Science, TU Dresden, Germany
  9. References: <2b3de6cf@p15.f202.n281.z2.fidonet> <1993Jan3.035343.15539@netcom.com> <stigj.22.726591656@dhhalden.no>
  10. Date: Sat, 9 Jan 1993 22:34:04 GMT
  11. Lines: 20
  12.  
  13. In article <stigj.22.726591656@dhhalden.no>, stigj@dhhalden.no (STIG JORGENSEN) writes:
  14.  
  15. > >Most libraries' malloc() functions will handle everything automatically,
  16. > >allocating memory in large chunks (4K or 8K or even 32K) from the OS
  17. > >and then splitting those chunks up as necessary. See for example the
  18. > >MiNT or GNU C library malloc()/sbrk() code. All the programmer has to
  19. > >remember is to use the standard C malloc()/free() functions instead
  20. > >of the Atari specific Malloc()/Mfree() functions.
  21.  
  22. > I was just wondering if Pure C has this built in in its library. I am 
  23. > writing a little program that checks if there are any duplicates on the 
  24. > harddisk. Here I use a linked list and make a Malloc() call for every member 
  25. > of the list. There hasn't been any proglems yet. Do you know if Pure Chas 
  26. > this built in?
  27.  
  28. Yes, it has, and you really should use it (malloc()/free()) in this case.
  29.  
  30. Michael
  31. -- 
  32. Internet: hohmuth@freia.inf.tu-dresden.de
  33.