home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / C / DLIBSSRC.ZIP / MSIZE.C < prev    next >
Encoding:
Text File  |  1987-10-02  |  255 b   |  11 lines

  1. long msize(addr)
  2. register long *addr;
  3. /*
  4.  *    Return the size, in bytes, of the memory block at <addr>.  Note
  5.  *    that the size is a long value, since the block may have been
  6.  *    allocated by lalloc().
  7.  */
  8. {
  9.     return((addr[-1] & 0x00FFFFFF) - 4L);
  10. }
  11.