Method | Description |
CTSTK_Clear | Clears the stack of all its items. |
CTSTK_Constructor | Creates a stack (an instance of type CTSTK). |
CTSTK_Count | Returns the number of items in the stack. |
CTSTK_Destructor | Releases the stack and its resources. |
CTSTK_GetMax | Returns the maximum number of items that can be inserted in the stack. |
CTSTK_ItemSize | Returns the size of the next available item in the stack. |
CTSTK_IterNext | Returns the value of the next available item in the stack within an iteration loop; the item is not removed from the stack. |
CTSTK_IterNextSize | Returns the size of the next item to be retrieved within an iteration loop. |
CTSTK_IterStart | Starts an iteration loop. |
CTSTK_Pop | Returns the next available stack item in last-in-first-out fashion. |
CTSTK_Push | Inserts an item in the stack. |
CTSTK_SetMax | Sets the maximum number of items that can be held in the stack. |
/INCLUDE QINCSRC,CTBASE DRc S 10I 0 DpStack S * /Free pStack = CTSTK_Constructor(); // Use CTSTK instance via methods by using the pStack pointer // // ... // We are done and need to gargabe collect CTSTK resources CTSTK_Destructor(pStack); *InLR = *On; Return; /End-Free