4.4BSD/usr/share/man/cat3/free.0
FREE(3) BSD Programmer's Manual FREE(3)
NNAAMMEE
ffrreeee - free up memory allocated with malloc, calloc or realloc
SSYYNNOOPPSSIISS
##iinncclluuddee <<ssttddlliibb..hh>>
_v_o_i_d
ffrreeee(_v_o_i_d _*_p_t_r);
DDEESSCCRRIIPPTTIIOONN
The ffrreeee() function causes the space pointed to by _p_t_r to be deallocated,
that is, made available for further allocation. If _p_t_r is a null point-
er, no action occurs. Otherwise, if the argument does not match a point-
er earlier returned by the calloc, malloc, or realloc function, or if
the space has been deallocated by a call to ffrreeee() or realloc, general
havoc may occur.
RREETTUURRNN VVAALLUUEESS
The ffrreeee() function returns no value.
SSEEEE AALLSSOO
calloc(3), malloc(3), realloc(3)
SSTTAANNDDAARRDDSS
The ffrreeee() function conforms to ANSI C X3.159-1989 (``ANSI C '').
4.4BSD June 4, 1993 1