Mail Archives: djgpp/1997/04/25/15:23:05
mejm2 AT hermes DOT cam DOT ac DOT uk (Michael Meeks) wrote:
> I'm lost here, which is the alloc that gets temp. memory from the
> stack, and saves fragmentation ? and is there a variant of that that zeros
> the memory ?
The function is alloca(). Be careful the stack doesn't grow when you need more
like the heap. I don't remmember if exist a variant to fill it with zeros but
you can make a memset after the alloca. Be careful alloca isn't a function.
SET
------------------------------------ 0 --------------------------------
Visit my home page: http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013
- Raw text -