VALLOC

Section: C Library Functions (3)
Index Return to Main Contents

BSD mandoc
BSD 3  

NAME

valloc - aligned memory allocation function  

SYNOPSIS

Fd #include <unistd.h> Ft char * Fn valloc unsigned size  

DESCRIPTION

Bf -symbolic Valloc is obsoleted by the current version of malloc(3), which aligns page-sized and larger allocations. Ef

The Fn valloc function allocates Fa size bytes aligned on a page boundary. It is implemented by calling malloc(3) with a slightly larger request, saving the true beginning of the block allocated, and returning a properly aligned pointer.  

RETURN VALUES

The Fn valloc function returns a pointer to the allocated space if successful; otherwise a null pointer is returned  

HISTORY

The Fn valloc function appeared in BSD 3.0  

BUGS

A vfree function has not been implemented.


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES
HISTORY
BUGS

This document was created by man2html, using the manual pages.
Time: 21:44:08 GMT, August 05, 2022