DOKK / manpages / debian 12 / libmatio-doc / Mat_VarGetNumberOfFields.3.en
MAT_VARGETNUMBEROFFIELDS(3) Library Functions Manual MAT_VARGETNUMBEROFFIELDS(3)

Mat_VarGetNumberOfFieldsGets the number of fields for a structure variable.

#include <matio.h>

unsigned
Mat_VarGetNumberOfFields(matvar_t *matvar);

The () 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.

Mat_VarGetStructFieldnames(3)

March 18, 2012 Debian