#include "cifparse.h"
int ndb_cif_get_category_name_from_item_name(char categoryName[MxNameLen],
const char * itemName);
ndb_cif_get_category_name_from_item_name extracts the category name from the complete item name itemName and stores the result in categoryName, which must be of the fixed length MxNameLen. Checks are made to ensure that the extraction leads to a valid category name.
| categoryName | a fixed length string to hold the category name |
| itemName | the name of the item from which the category name is to be extracted |
Returns the category's number or 0 upon failure.
| See also: | ndb_cif_get_item_keyword_from_item_name |
|---|