Clara-Doc - Method Reference

 / packages  / CTBASE  / Version 01.00.00  / CTLST

CTLST_Get
Description
Prototype

			
     DCTLST_Get...
     D                 PR            10I 0
     D@This                            *   Value
     D@Value                           *   Value
     D@Bytes                         10I 0
     D@Index                         10I 0 Value
						
Parameters
@This
TypePointer (*)
Passing ModeValue
DescriptionThe address of a linked list instance. This pointer MUST be obtained through a call to CTLST_Constructor.
@Value
TypePointer (*)
Passing ModeValue
DescriptionThe address of a user-supplied buffer. The user-supplied buffer can be a local variable of any type or a buffer resulting from a call to %Alloc.
@Bytes
Type10I 0
Passing ModeReference
DescriptionThe size in bytes of the buffer pointed to by the @Value parameter. On return, this parameter will hold the actual size of the requested list item. This way, the caller can know if the supplied buffer wasn't large enough or how many bytes in the supplied buffer are those from the CTLST instance if the supplied buffer is too large.
@Index
Type10I 0
Passing ModeValue
DescriptionThe index of the requested list item within the CTLST instance. The first item is located at index 1.
Return Values

Symbolic ConstantValueDescription
CS_SUCCESS0The list item was copied successfully.
CS_FAILURE1The list item could not be copied into the caller-supplied buffer. This could be due to an index out of range or a *null caller-supplied buffer.