MO_Malloc and MO_Free

C Specification

#include <nitro/mobiclip.h>

extern void* MO_Malloc ( u32 size );
extern void MO_Free ( void* mem_p );

Description

Allocator/Deallocator functions
MO_Malloc and MO_Free are used to perform any dynamic allocation/deallocation done in the Mobiclip library.
MO_Malloc and MO_Free are not implemented in the Mobiclip library, but instead declared as extern.
You must provide an implementation of these functions in your program !!!
This gives you freedom to use classic malloc/free functions or any custom allocation routines you may have.

MO_Malloc is used only by MO_OpenMovie and MO_BlitFrameImage function.
MO_Free is used only by MO_CloseMovie function.

Arguments

Same as malloc/free standard functions

Return Values

Same as malloc/free standard functions

Revision History

03/03/2008 Initial Version