Re: [AD] mode-list updates.]

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


In reply to Henrik Stokseth <hstokset@xxxxxxxxxx>:
>You said it: obvious. However you gave me a good idea. What if i provide an
>al_realloc() which works exactly like libc realloc() just that it's
>behaviour is guaranteed? in other words: if ptr=NULL -> malloc, if size=0 ->
>free, otherwise call realloc and if failure -> free.

Yes, this is a good solution. However, the best solution is surely to
use malloc() and free() at the relevant times ;-)

Bye for now,
-- 
Laurence Withers, lwithers@xxxxxxxxxx
                http://www.lwithers.demon.co.uk/

Attachment: signature.asc
Description: PGP signature



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/