Allocates a simple memory cell from the MidiShare memory manager. For some special application, it may be useful to have access to the basic functions of the memory manager. All the events managed by MidiShare are implemented from fixed-sized cells (16 bytes).
pascal MidiEvPtr MidiNewCell(void);
none
The result a MidiEvPtr, a pointer to a memory cell, or NIL when memory space is exhausted.
Allocate a new cell.
MidiEvPtr c; c = MidiNewCell(); /*.....*/ MidiFreeCell(c);
Cells allocated with MidiNewCell must be freed with MidiFreeCell and not with MidiFreeEv.