valloc()

allocate memory aligned to page boundary 

Function


SYNOPSIS

#include <stdlib.h>

void *valloc(size_t size);


DESCRIPTION

The valloc() function has the same effect as malloc(), except that the allocated memory is aligned to a page boundary.

Pointers returned by valloc() may be passed to free() but not to realloc().


PARAMETERS

size 

Specifies the size of the allocated block of memory. If size is zero, a unique pointer to the heap is returned.


RETURN VALUES

The valloc() function returns a null pointer if there is insufficient memory.


CONFORMANCE

4.4BSD.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
free(), malloc(), memalign(), realloc()


PTC MKS Toolkit 10.4 Documentation Build 39.