Go to the first, previous, next, last section, table of contents.


xfree

Syntax

#include <stdlib.h>

void xfree(void *ptr);

Description

Frees memory allocated by xmalloc (see section xmalloc). This function guarantees that a NULL pointer is handled gracefully.

Portability

not ANSI, not POSIX

Example

void *f = xmalloc(100);
xfree(f);


Go to the first, previous, next, last section, table of contents.