# structname_fieldname_at_len(vector)

This function returns the size of a char or string element of a vector. Like ‘C’ arrays, vectors are counted from zero. Handle is returned by `classname_structname_read_handle()`.

### Prototype

>         MCO_RET	structname_fieldname_at_len(	/*IN*/ structname *handle,
>                                  /*IN*/ uint2 index,
>                                  /*OUT*/ uint2 *len);

### Arguments

handle | A pointer to a structname handle
index | A `uint2` that specifies the offset from the start of the vector of the element to return the length of
len | A pointer to a `uint2` that receives the size of the element

### Description

This function returns the size of a char or string element of a vector. Like ‘C’ arrays, vectors are counted from zero. Handle is returned by `classname_structname_read_handle()`.

### Return Codes

> See `classname_fieldname_at_len()`.

> Related Topics