#include <stdlib.h>
void xhuge *xmalloc (
unsigned long size); /* block size to allocate */
Description
The xmalloc function allocates a memory block from the
memory pool of size bytes in length.
Note
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.
This function uses xhuge pointers to objects and may
be used in any memory model other than Tiny Model.
Return Value
The xmalloc function returns a pointer to the allocated
block or a null pointer if there is not enough memory to satisfy the
allocation request.
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.