www.delorie.com/djgpp/doc/libc/libc_870.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

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.

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.

Portability

ANSI/ISO C No
POSIX No

Example

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


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004