rdesc
is a pointer to the row descriptor for which columns are being counted. A row descriptor describes the structure of a row or a composite value. Call mi_get_row_desc() or mi_get_row_desc_without_row() to obtain it.
Yes
Return Values On success, returns the number of columns for the specified row descriptor; on failure, returns MI_ERROR. Related Topics For additional information, see the descriptions of the following functions: mi_get_row_desc() and mi_get_row_desc_without_row().