home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / ENTERPRS / CPM / UTILS / S / SMC21LIB.LZH / FREE.C < prev    next >
Text File  |  2000-06-30  |  512b  |  21 lines

  1.  
  2. #define NOCCARGC
  3. extern char *_memptr;
  4. /*
  5. ** free(ptr) - free previously allocated memory block.
  6. ** Memory must be freed in the reverse order fromw which
  7. ** it was allocated.
  8. ** ptr = value returned from calloc() or malloc().
  9. ** Returns ptr if successful or NULL otherwise.
  10. */
  11. free(ptr) char *ptr; {
  12.   return(_memptr = ptr);
  13.   }
  14.  
  15. #asm
  16. cfree   equ free
  17.         entry cfree
  18. #endasm
  19.  
  20.  
  21.