Skip to contentSkip to conversation

another newbie question regarding alsa-api

DISCUSSION joy 2 participants 2 messages Jun 30, 2002

lore
Share & tools
lore

joy

author
#0 lore raw

hi,

just another simple question regarding alsa-api or more. are there any advanteges of using alloca functions versus malloc functions without of simplyier handling? has it any effect on memory handling?

Signature · 15 lines
regards

____-
joy

________/\---------%%%___________-----------
webcast every sunday 2000 cest at pingfm.org

pgp key at: x-hkp://wwwkeys.de.pgp.net


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
No, I will not fix your computer.
http://thinkgeek.com/sf
#1 lore raw
Quoted 3 lines

just another simple question regarding alsa-api or more. are there any advanteges of using alloca functions versus malloc functions without of simplyier handling? has it any effect on memory handling?

its not clear that you know what alloca does. it allocates memory from the stack, not the heap; as a result, it does not need to be explicitly freed - when the execution frame is popped (i.e. the function that called alloca returns), the space is reclaimed "automatically".

this has nothing to do with ALSA, btw. alloca has been around for many years.

--p

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
No, I will not fix your computer.
http://thinkgeek.com/sf