Allocate a heap block aligned on a page boundary
#include <stdarg.h> void * valloc( size_t size);
- The size of the block to allocate, in bytes.
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 );
A pointer to the allocated block, or NULL if an error occurred (errno is set).
- There's insufficient memory available with the requested alignment.
Last modified: 2013-09-30