Gives the total number of cells allocated to MidiShare. MidiTotalSpace allows an application to know at any time the total number of cells allocated by the MidiShare memory manager at startup.
pascal long MidiTotalSpace(void);
none
the result is a 32-bit integer, the total number of cells in the MidiShare memory manager.
Print information about MidiShare memory space.
void PrintMemInfo(void) { printf("MidiShare memory :\n"); printf(" free space : %i cells\n", MidiFreeSpace()); printf(" used space : %i cells\n", MidiTotalSpace() - MidiFreeSpace()); printf(" total space : %i cells\n", MidiTotalSpace()); }