Heapavail - Texas Instruments TI-89 Developer's Manual

Graphing calculator
Hide thumbs Also See for TI-89:
Table of Contents

Advertisement

Appendix A: System Routines — Memory Management

HeapAvail

Declaration:
DWORD HeapAvail (void)
Category(ies):
Memory Management
Description:
Return the total amount of free bytes in the heap (the sum of all of the
individual blocks of memory).
Inputs:
None
Outputs:
The total number of bytes available in the heap.
Assumptions:
None
Side Effects:
None
All versions of the TI-89 / TI-92 Plus.
Availability:
TI-89 / TI-92 Plus
Differences:
None
See Also:
HeapAlloc, HeapAllocThrow, HeapMax, HeapCompress
Example:
static void AP_app(pFrame self, PEvent e) {
switch (e->command) {
case CM_START:
if (HeapAvail() < 20000) {
myErrorMsg( "Not enough memory to start app" );
EV_quit();
}
break;
TI-89 / TI-92 Plus Developer Guide
Not for Distribution
849
Beta Version January 26, 2001

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ti-92 plusTi-92 plus

Table of Contents