The mi_type_element_typedesc() function

The mi_type_element_typedesc() function obtains the type descriptor for the elements of a collection data type from its type descriptor.

Syntax

MI_TYPE_DESC *mi_type_element_typedesc(type_desc)
   MI_TYPE_DESC *type_desc;
type_desc
A pointer to the type descriptor from which to obtain the element type of the collection data type.
Valid in client LIBMI application? Valid in user-defined routine?
Yes Yes

Usage

Valid collection data types are LIST, SET, and MULTISET. For example, this function can tell you that a collection type is a collection of integers.

Return values

An MI_TYPE_DESC pointer
A pointer to the type descriptor for the element type of the collection data type.
NULL
The function was not successful.