home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / compiler / small_c / byte_sc / free.c < prev    next >
Encoding:
C/C++ Source or Header  |  1987-10-04  |  512 b   |  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.