Return the number of structures/classes for a dictionary.
MCO_RET mco_dict_struct_count( /*IN*/ mco_metadict_header_t * metadict,
/*IN*/ unsigned short dict_no,
/*OUT*/ unsigned short * count );
metadict
dict_no
mco_metadict_count() - 1).count
This function returns the number of structures/classes for the dictionary referred to by the index
dict_noin the arraymetadict->entries[].
MCO_S_OK
Application snippet:
const char * dbname = "SimpleDb";
int main(int argc, char* argv[])
{
MCO_RET rc;
unsigned short dict_no = 0;
unsigned short count;
mco_metadict_header_t *header;
...
header = (mco_metadict_header_t *) malloc(size);
mco_metadict_init(header, size); /* initialize the metadict */
...
rc = mco_dict_struct_count(header, dict_no, &count);
...
}