Mat_VarGetNumberOfFields
Get the number of fields for a structure variable.
- Provided by: libmatio-doc (Version: 1.5.3-1)
- Source: libmatio
- Report a bug
Get the number of fields for a structure variable.
#include
<matio.h>
unsigned
Mat_VarGetNumberOfFields(const
matvar_t *matvar);
The
Mat_VarGetNumberOfFields()
function returns the number of fields for the structure variable
matvar.
The number of fields will be returned on success, and 0 otherwise. Note also that a structure can validly contain 0 fields.