GetZone
GetZone Get address of the current heap zone returns pointer to a 62-byte Zone record GetZone returns the address of the start of the current heap zone. Returns: a 4-byte pointer; the address of a 62-byte Zone record for that current active heap zone.
Notes: Another method is to access the global variable TheZone (at 0x0118). For
instance, to change the number of master pointers to be allocated via
void MyMoreMasters( numMastPtrs )
short numMastPtrs;
short oldMoreMast; /* saved value of moreMast */
oldMoreMast = TheZone -> moreMast; /* get old value of moreMast */
TheZone -> moreMast = numMastPtrs; /* put the value we want in */
/* zone header */
TheZone -> moreMast = oldMoreMast;/* restore old val of moreMast */
}