Clara-Doc - Method Reference

 / packages  / CTBASE  / Version 01.00.00  / CTSTK

CTSTK_SetMax
Description
Sets the maximum limit on the number of items a stack instance may hold.

Prototype

			     DCTSTK_SetMax...
     D                 PR            10I 0
     D@This                            *   Value
     D@Size                          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.
@Size
Type10I 0
Passing ModeValue
DescriptionThe maximum number of items that can be inserted in the specified stack instance. The maximum possible number of items is CTSTK_MAXSIZE (2147483646 items).
Return Values

Symbolic ConstantValueDescription
CS_SUCCESS0The stack's maximum number of items has been set successfully.
CS_FAILURE1The @Size value is invalid (possibly negative).