On Tue, Jan 31, 2006 at 03:39:14PM -0800, Olwe Bottorff wrote: > Okay, when I use a malloc or alloca, I'm grabbing heap > memory, "alloca" allocates space on the stack, not on the heap. > but if I just initialize a variable, array, > etc. and fill it with stuff, I'm using stack > "automatic" memory, right? If you _declare_ and initialize a variable inside a function, you are allocating it on the stack. > But of course a malloc > inside a function uses heap. And in general if you > don't know or have big memory needs, use heap memory, > right? I have lost you here. What is the question? florin -- Don't question authority: they don't know either! -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://shadowknight.real-time.com/pipermail/tclug-list/attachments/20060131/0faa097b/attachment.pgp