|
| _alloc_boxn| Summary | |
#include <membox.h>
void near *_alloc_boxn (
void near *box_mem); /* pool address */
| | Description | | The _alloc_boxn routine allocates a block from the near memory pool box_mem. The memory pool must have been previously initialized using the _init_boxn library routine. Note - This routine is reentrant and thread-safe. It may be called from the main function and an interrupt with no restrictions.
| | Return Value | | The _alloc_boxn routine returns a near pointer to the allocated block (if available) or a NULL pointer if no block is available. | | See Also | | _calloc_boxn, _free_boxn, _init_boxn |
|
|