#include <stdlib.h>
void xdata *malloc (
unsigned int size); /* block size to allocate */
Description
The malloc function allocates a memory block from the
memory pool of size bytes in length.
Note
Before calling this function your program must invoke the
init_mempool function
to initialize the memory management routines and provides the
starting address and size of the memory pool.
Source code for this routine is provide in the LIB
folder. You may modify the source to customize this function for
your particular hardware environment.
Return Value
The malloc function returns a pointer to the allocated
block or a null pointer if there is not enough memory to satisfy the
allocation request.
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers of your data.