Re: malloc() implementation
- From: Flash Gordon <spam@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 31 May 2006 13:29:16 +0100
John Devereux wrote:
Flash Gordon <spam@xxxxxxxxxxxxxxxxxx> writes:
You can't write a malloc routine in standard C which might be part of
why it is in the standard library, hence the suggestion of asking in a
Linux group.
What you *can* do though is statically allocate a memory buffer, then
allocate out of that with your own "malloc".
True, as long as you call is something other than malloc ;-)
It all depends on what the OP actually wants to achieve.
--
Flash Gordon, living in interesting times.
Web site - http://home.flash-gordon.me.uk/
comp.lang.c posting guidelines and intro:
http://clc-wiki.net/wiki/Intro_to_clc
.
- Follow-Ups:
- Re: malloc() implementation
- From: Clever Monkey
- Re: malloc() implementation
- References:
- malloc() implementation
- From: Karsten Jung
- Re: malloc() implementation
- From: Flash Gordon
- Re: malloc() implementation
- From: John Devereux
- malloc() implementation
- Prev by Date: Re: Simplicity has a future
- Next by Date: Re: malloc() implementation
- Previous by thread: Re: malloc() implementation
- Next by thread: Re: malloc() implementation
- Index(es):
Relevant Pages
|