Mail Archives: djgpp/1996/08/12/19:27:53
> Also, if you do not need too much memory (several kbytes, 10s of kbytes,
> but not 100s of kbytes) you can consider using alloca(), which allocates
> data from the stack. The good thing with it is that your data will be
> automatically freed when the function you call alloca() in is left, and
> also it is very fast. The bad thing is that stack length is limited to
> 256kbytes, so you should not use it for big chunks of data.
Just a question on this: does DJGPP still allocate memory in powers of 2
when allocating this way, or does it allocate the size of the structure?
Leathal.
- Raw text -