Operating systems, development tools, and professional services
for connected embedded systems
for connected embedded systems
![]() |
![]() |
![]() |
![]() |
valloc()
Allocate a heap block aligned on a page boundary
Synopsis:
#include <stdarg.h> void * valloc( size_t size);
Arguments:
- size
- The size of the block to allocate, in bytes.
Library:
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
Description:
The valloc() function allocates a heap block that's aligned on a page boundary. It's equivalent to:
memalign( sysconf( _SC_PAGESIZE ), size );
Returns:
See memalign().
Classification:
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |
See also:
![]() |
![]() |
![]() |
![]() |

![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)