BSD 4_2 development
[unix-history] / usr / man / man3 / valloc.3
CommitLineData
05dda90f
C
1.TH VALLOC 3 "19 January 1983"
2.UC
3.SH NAME
4valloc \- aligned memory allocator
5.SH SYNOPSIS
6.nf
7.B char *valloc(size)
8.B unsigned size;
9.fi
10.SH DESCRIPTION
11.I Valloc
12allocates
13.I size
14bytes aligned on a page boundary.
15It is implemented by calling
16.IR malloc (3)
17with a slightly larger request, saving the true beginning of the block
18allocated, and returning a properly aligned pointer.
19.SH DIAGNOSTICS
20.I Valloc
21returns a null pointer (0) if there is no available memory
22or if the arena has been detectably corrupted by storing outside the bounds
23of a block.
24.SH BUGS
25.I Vfree
26isn't implemented.