#include <rtl.h>
void *_calloc_box (
void* box_mem ); /* Start address of the memory pool */
Description
The _calloc_box function allocates a block of memory from
the memory pool that begins at the address box_mem and
initializes the entire memory block to 0.
The _calloc_box function is in the RL-RTX library. The
prototype is defined in rtl.h.
Note
You must initialize the memory pool using the _init_box
function before performing any other operation on the memory
pool.
The _calloc_box function is reentrant and thread-safe.
You can call it from the main function and from an IRQ interrupt
function with no restriction.
Return Value
The _calloc_box function returns a pointer to the allocated
block if a block was available. If there was no available block, it
returns a NULL pointer.
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.