![]()  | 
![]()  | 
![]()  | 
![]()  | 
Allocate memory
#include <audio_driver.h> void *ado_malloc( size_t size );
The ado_malloc() macro allocates a block of memory of size bytes.
This macro is defined as ado_malloc_debug(), or malloc(), if ADO_DEBUG is defined; see “Debugging an audio driver” in the Organization of a Driver chapter.
The advantage of using the debug variant is that it tracks the memory allocated until it's freed; see ado_memory_dump().
A pointer to the memory object that was allocated, or NULL if there wasn't enough memory available.
QNX Neutrino
| Safety: | |
|---|---|
| Cancellation point | No | 
| Interrupt handler | No | 
| Signal handler | No | 
| Thread | Yes | 
ado_calloc(), ado_free(), ado_memory_dump(), ado_realloc()
malloc() in the QNX Library Reference
![]()  | 
![]()  | 
![]()  | 
![]()  |