MCPcopy Create free account
hub / github.com/JACoders/OpenJK / KeywordHash_Find

Function KeywordHash_Find

code/ui/ui_shared.cpp:1255–1267  ·  view source on GitHub ↗

=============== KeywordHash_Find =============== */

Source from the content-addressed store, hash-verified

1253===============
1254*/
1255keywordHash_t *KeywordHash_Find(keywordHash_t *table[], const char *keyword)
1256{
1257 keywordHash_t *key;
1258 int hash;
1259
1260 hash = KeywordHash_Key(keyword);
1261 for (key = table[hash]; key; key = key->next)
1262 {
1263 if (!Q_stricmp(key->keyword, keyword))
1264 return key;
1265 }
1266 return NULL;
1267}
1268
1269/*
1270================

Callers 2

Item_ParseFunction · 0.70
Menu_ParseFunction · 0.70

Calls 2

Q_stricmpFunction · 0.85
KeywordHash_KeyFunction · 0.70

Tested by

no test coverage detected