Clara-Doc - Method Reference

 / packages  / CTBASE  / Version 01.00.00  / CTSTK

CTSTK_Push
Description
Inserts an item in a stack instance.

Prototype

			     DCTSTK_Push...
     D                 PR            10I 0
     D@This                            *   Value
     D@Value                           *   Value
     D@Bytes                         10I 0 Value
						
Parameters
@This
TypePointer (*)
Passing ModeValue
DescriptionThe address of a stack instance. This pointer MUST be obtained through a call to CTSTK_Constructor.
@Value
TypePointer (*)
Passing ModeValue
DescriptionThe address of the buffer that holds the item to be inserted in the stack instance.
@Bytes
Type10I 0
Passing ModeValue
DescriptionThe size in bytes of the item to be inserted.
Return Values

Symbolic ConstantValueDescription
CS_SUCCESS0The item has been inserted successfully.
CS_FAILURE1The item could not be inserted. The maximum number of items allowed in the stack has already been reached.