SetApplLimit
SetApplLimit Change the size of the application heap zone
#include <Memory.h> Memory Manager
void SetApplLimit(limitPtr );
Ptr limitPtr ; desired address+1 for end of application heap
SetApplLimit sets the size of the application heap by selecting the address
beyond which it may not expand.
limitPtr is an address. It specifies an address one byte beyond the desired end
of the application heap zone. If the heap has already grown beyond
this limit, the current size is used instead.
Returns: none; the MemError function may return an Error Code of:
noErr (0) No error
memFullErr (-108) Can't expand that far

Notes: SetApplLimit expands/contracts only the application heap zone (not any
additional zones created via InitZone). The new limit is stored in the
global variable ApplLimit (at 0x0130).
You might call GetApplLimit before making this call, then add a specified
amount to the return value. e.g., to increase the current size by 16K, use:
Note that you need to subtract (not add) to increase the size of the stack. A
more common operation is to call MaxApplZone early in your program to
provide the largest possible size for the application heap.