-long get_vocab_id(const char* word)
-// Search the vocab categories in order for the supplied word.
-{
- /* Check for an empty string */
- if (strncmp(word, "", sizeof("")) == 0)
- return (WORD_EMPTY);
+void get_vocab_metadata(const char* word, long* id, enum wordtype* type)
+{
+ /* Check for an empty string */
+ if (strncmp(word, "", sizeof("")) == 0)
+ {
+ *id = WORD_EMPTY;
+ *type = NO_WORD_TYPE;
+ return;
+ }