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_calloc.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_calloc.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_calloc.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_calloc.html on line 8
Allocate space for an array
#include <audio_driver.h>
void *ado_calloc( size_t n,
size_t size );
- n
- The number of elements to allocate in the array.
- size
- The size of each element.
The ado_calloc() macro allocates space from the heap for an array.
This macro is defined as ado_calloc_debug(), or
calloc(),
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().
The same as
calloc():
a pointer to the start of the allocated memory, or NULL if
there's
insufficient memory available or if size is zero.
QNX Neutrino
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
No |
Thread |
Yes |
ado_free(),
ado_malloc(),
ado_memory_dump(),
ado_realloc()
calloc()
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_calloc.html on line 122
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_calloc.html on line 122