MorphOS Developer
Posts: 593 from 2003/2/24
From: finland, the l...
Quote:
walkero wrote:
@Piru
Is it preferrable to use AllocMem, AllocMemAligned or the malloc? I used the latter, but I curious to understand what is the preferrable way to do it.
There is no preference, use whatever suits your application best. malloc is nice in that it will be released automatically when the application terminates.