structname_fieldname_size(vector)(string)

The size function for a string element returns the number of bytes in the string. For a vector element, it returns the number of elements in the vector. Handle is returned from classname_structname_read_handle().

Prototype

 
    MCO_RET	structname_fieldname_size(	/*IN*/ structname *handle, 
                           /*OUT*/ uint2 *size );
 

Arguments

handle A pointer to a structname handle

size

A uint2 pointer to receive the size of the element

Description

The size function for a string element returns the number of bytes in the string. For a vector element, it returns the number of elements in the vector. Handle is returned from classname_structname_read_handle().

Return Codes

See classname_fieldname_size (vector or string).

Related Topics Link IconRelated Topics