home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / compat / stdlib / xfree.txh < prev    next >
Encoding:
Text File  |  1995-07-10  |  436 b   |  23 lines

  1. @c ----------------------------------------------------------------------
  2. @node xfree, memory
  3. @subheading Syntax
  4.  
  5. @example
  6. #include <stdlib.h>
  7.  
  8. void xfree(void *ptr);
  9. @end example
  10.  
  11. @subheading Description
  12.  
  13. Frees memory allocated by @code{xmalloc} (@pxref{xmalloc}).  This
  14. function guarantees that a NULL pointer is handled gracefully.
  15.  
  16. @subheading Example
  17.  
  18. @example
  19. void *f = xmalloc(100);
  20. xfree(f);
  21. @end example
  22.  
  23.