home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Interactive Guide / c-cplusplus-interactive-guide.iso / c_ref / csource4 / 223_01 / free.c < prev    next >
Encoding:
C/C++ Source or Header  |  1979-12-31  |  640 b   |  17 lines

  1. #define NOCCARGC  /* no argument count passing */
  2. extern char *zzmem;
  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 (zzmem = ptr);
  12.    }
  13. #asm
  14. cfree  equ    free
  15.        entry  cfree
  16. #endasm
  17.