:man| Alphabetical   Categories   About us 
 
VALLOC (3) | C library functions | Unix Manual Pages | :man

NAME

valloc - aligned memory allocation function

CONTENTS

Library
Synopsis
Description
Return Values
History
Bugs

LIBRARY


.Lb libc

SYNOPSIS


.In unistd.h void * valloc "size_t size"

DESCRIPTION


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

The valloc function allocates 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 valloc function returns a pointer to the allocated space if successful; otherwise a null pointer is returned

HISTORY

The valloc function appeared in BSD 3.0 .

BUGS

A vfree function has not been implemented.

June 4, 1993 VALLOC (3)
shtml">manServer 1.07 from valloc.3 using doc macros.


Share this page

     Follow us

Facebook Twitter Google+ LinkedIn


 
Created by Blin Media, 2008-2013