4BSD/usr/man/cat3/valloc.3

Compare this file to the similar file:
Show the results in this format:




VALLOC(3)           UNIX Programmer's Manual            VALLOC(3)



NAME
     valloc - aligned memory allocator

SYNOPSIS
     char *valloc(size)
     unsigned size;

DESCRIPTION
     _V_a_l_l_o_c allocates _s_i_z_e bytes aligned on a boundary adequate
     for _v_r_e_a_d(2)).  It is implemented by calling _m_a_l_l_o_c(3) with
     a slightly larger request, saving the true beginning of the
     block allocated, and returning a properly aligned pointer.

DIAGNOSTICS
     _V_a_l_l_o_c 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
     _V_f_r_e_e isn't implemented.



































Printed 11/10/80                                                1