home *** CD-ROM | disk | FTP | other *** search
/ Compendium Deluxe 1 / LSD Compendium Deluxe 1.iso / a / disk / misc / string11.lha / free.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-12-16  |  259 b   |  21 lines

  1. /*
  2.  *  FILE
  3.  *    free.c
  4.  *
  5.  *  DESCRIPTION
  6.  *    Free a memory block allocated by malloc() or calloc().
  7.  */
  8.  
  9. #include <exec/types.h>
  10. #include <exec/memory.h>
  11.  
  12. #include <proto/exec.h>
  13.  
  14. void
  15. free(void * ptr)
  16. {
  17.     FreeMem( ((long *)ptr)-1, * (((long *)ptr)-1));
  18. }
  19.  
  20.  
  21.