#include <stdlib.h>
void free_b (
void far *p); /* block to free */
or
void free_b (
void huge *p); /* block to free */
Description
The free_b function returns a memory block to the memory
pool. The p argument points to a memory block that
was previously allocated with the calloc_b, malloc_b,
or realloc_b functions. Once it has been returned to the
memory pool by the free_b function, the block is available for
subsequent allocation.
If p is a null pointer, it is ignored.
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.
Pointer arguments and return values are far in Small, Medium, Compact, and
Large Memory Models and huge
in HCompact, HLarge, and XLarge Memory Models. This function is not
supported in the Tiny Memory Model.
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.