home *** CD-ROM | disk | FTP | other *** search
/ C!T ROM 2 / ctrom_ii_b.zip / ctrom_ii_b / PROGRAM / C / SMALL_C / FREE.C < prev    next >
Text File  |  1987-10-04  |  512b  |  17 lines

  1. #define NOCCARGC  /* no argument count passing */
  2. extern char *Umemptr;
  3. /*
  4. ** free(ptr) - Free previously allocated memory block.
  5. ** Memory must be freed in the reverse order from which
  6. ** it was allocated.
  7. ** ptr    = Value returned by calloc() or malloc().
  8. ** Returns ptr if successful or NULL otherwise.
  9. */
  10. free(ptr) char *ptr; {
  11.    return (Umemptr = ptr);
  12.    }
  13. #asm
  14. _cfree  equ    _free
  15.        PUBLIC  _cfree
  16. #endasm
  17.