xref: /csrg-svn/lib/libc/gen/valloc.3 (revision 20467)
Copyright (c) 1980 Regents of the University of California.
All rights reserved. The Berkeley software License Agreement
specifies the terms and conditions for redistribution.

@(#)valloc.3 4.1 (Berkeley) 05/15/85

VALLOC 3
C 3
NAME
valloc - aligned memory allocator
SYNOPSIS
 char *valloc(size)  unsigned size; 
DESCRIPTION
Valloc allocates size bytes aligned on a boundary adequate for vread (2)). 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.
DIAGNOSTICS
Valloc returns a null pointer (0) if there is no available memory or if the arena has been detectably corrupted by storing outside the bounds of a block.
BUGS
Vfree isn't implemented.