Go to the first, previous, next, last section, table of contents.
#include <stdlib.h> void xfree(void *ptr);
Frees memory allocated by xmalloc
(see section xmalloc). This
function guarantees that a NULL pointer is handled gracefully.
Note that, currently, the header `stdlib.h' does not
declare a prototype for xfree
, because many programs declare
its prototype in different and conflicting ways. If you use
xfree
in your own code, you might need to provide your own
prototype explicitly.
not ANSI, not POSIX
void *f = xmalloc(100); xfree(f);
Go to the first, previous, next, last section, table of contents.