C Math Library Reference | ![]() ![]() |
Set the MATLAB C Math Library's memory management functions
C Prototype
void mlfSetLibraryAllocFcns(calloc_proc calloc_fcn, free_proc free_fcn, realloc_proc realloc_fcn, malloc_proc malloc_fcn);
Arguments
calloc_proc calloc_fcn
The function that mxCalloc
uses to perform memory allocation operations.
mxFree
uses to perform memory deallocation (freeing) operations.
realloc_proc realloc_fcn
mxRealloc
uses to perform memory reallocation operations.
malloc_proc malloc_fcn
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 | ![]() |