This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Allocate a heap block aligned on a page boundary
#include <stdarg.h> void * valloc( size_t size);
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The valloc() function allocates a heap block that's aligned on a page boundary. It's equivalent to:
memalign( sysconf( _SC_PAGESIZE ), size );
See memalign().
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |