Clara-Doc - Method Reference

 / packages  / CTBASE  / Version 01.00.00  / CTSTK

CTSTK_Pop
Description
Removes an item from a stack instance and copied it in a caller-supplied buffer.

Prototype

			     DCTSTK_Pop...
     D                 PR            10I 0
     D@This                            *   Value
     D@Value                           *   Value
     D@Bytes                         10I 0
						
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 a buffer where the stack item is to be copied.
@Bytes
Type10I 0
Passing ModeReference
DescriptionThe size in bytes of the buffer where the stack value is to be copied.
Return Values

Symbolic ConstantValueDescription
CS_SUCCESS0The stack item has been copied successfully. Also, the item is no longer in the stack.
CS_FAILURE1The item could not be copied in the buffer and the item was not removed from the stack.