C Math Library Reference    
mlfSetLibraryAllocFcns

Set the MATLAB C Math Library's memory management functions

C Prototype

Arguments
calloc_proc calloc_fcn
   The function that mxCalloc uses to perform memory allocation operations.

free_proc free_fcn
   The function that mxFree uses to perform memory deallocation (freeing) operations.

realloc_proc realloc_fcn
   The function that mxRealloc uses to perform memory reallocation operations.

malloc_proc malloc_fcn
   The function to be called in place of malloc to perform memory allocation operations.

Definition

This function lets you register your own allocation and deallocation routines with the MATLAB C Math Library. It gives you complete control over memory management.


 mlfSetErrorHandler mlfSetPrintHandler