Go to the first, previous, next, last section, table of contents.


valloc

Syntax

#include <stdlib.h>

void *valloc(size_t size);

Description

This function is just like malloc (see section malloc) except the returned pointer is a multiple of the CPU page size which is 4096 bytes.

Return Value

A pointer to a newly allocated block of memory.

Portability

not ANSI, not POSIX

Example

char *page = valloc(getpagesize());


Go to the first, previous, next, last section, table of contents.