FREEMEM(2) Xinu Programmer's Manual FREEMEM(2) NAME freemem - deallocate a block of heap memory SYNOPSIS int freemem(addr, len) char *addr; int len; DESCRIPTION _F_r_e_e_m_e_m deallocates a contiguous block of memory previously obtained with GETMEM(2), and returns it to the free list. Argument _a_d_d_r specifies the lowest address of the block being deallocated, and argument _l_e_n specifies the length of the block in bytes. In this version, memory is allocated in multiples of four bytes to guarantee that sufficient space is available in each block to link it onto the free list. However, the length passed to both _g_e_t_m_e_m and _f_r_e_e_m_e_m is rounded automatically, so the user need not be aware of any extra space in the allocated block. SEE ALSO getbuf(2), getmem(2), getstk(2), freebuf(2), freestk(2) Version 6b Printed 1/12/87 1