# structname_fieldname_get(string)

This form of the function applies to elements that are of type string. Handle is returned from `classname_structname_read_handle()`.

### Prototype

>         MCO_RET	structname_fieldname_get(	/*IN*/ structname *handle,
>                              /*OUT*/ char *dest,
>                              /*IN*/ uint2 dest_size,
>                              /*OUT*/ uint2 *len);

### Arguments

handle | A pointer to a structname handle
dest | A pointer to a buffer to receive the element’s contents
dest_size | The size of the `dest` buffer
len | A `uint2` pointer to receive the number of bytes written to `dest`

### Description

This form of the function applies to elements that are of type string. Handle is returned from `classname_structname_read_handle()`.

### Return Codes

See `classname_fieldname_get(string)`

Related Topics