MCPcopy Create free account
hub / github.com/HyperDbg/HyperDbg / SemanticRuleToInt

Function SemanticRuleToInt

hyperdbg/script-engine/code/script-engine.c:4231–4242  ·  view source on GitHub ↗

* @brief Converts a sematinc rule token to integer * * @param str * @return unsigned long long int */

Source from the content-addressed store, hash-verified

4229 * @return unsigned long long int
4230 */
4231unsigned long long int
4232SemanticRuleToInt(char * str)
4233{
4234 for (int i = 0; i < SEMANTIC_RULES_MAP_LIST_LENGTH; i++)
4235 {
4236 if (!strcmp(str, SemanticRulesMapList[i].Name))
4237 {
4238 return SemanticRulesMapList[i].Type;
4239 }
4240 }
4241 return INVALID;
4242}
4243
4244/**
4245 * @brief Prints some information about the error

Callers 1

ToSymbolFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected