home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / enterprs / cpm / utils / s / smc21lib.lzh / FREE.C < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-25  |  512 b   |  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.