Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_realloc.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_realloc.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_realloc.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_realloc.html on line 8
Allocate, reallocate, or free a block of memory
#include <audio_driver.h>
void *ado_realloc( void *ptr,
size_t size);
- ptr
- A pointer to the block of memory.
- size
- The new size of the block, in bytes.
The ado_realloc() macro
allocates, reallocates, or frees a block of memory.
This macro is defined as
realloc(),
or ado_realloc_debug() 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().
Same as
realloc():
a pointer to the start of the reallocated memory,
or NULL if there isn't
sufficient memory available or the size is set to zero.
QNX Neutrino
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
No |
Thread |
Yes |
ado_calloc(),
ado_free(),
ado_malloc(),
ado_memory_dump()
realloc()
in the QNX Library Reference
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_realloc.html on line 123
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/ddk_en/audio/api-ref/ado_realloc.html on line 123