MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / Team_ActionStringToType

Function Team_ActionStringToType

src/team.c:102–112  ·  view source on GitHub ↗

* Convert the name of a team action to the type value of that team action, or * TEAM_ACTION_INVALID if not found. */

Source from the content-addressed store, hash-verified

100 * TEAM_ACTION_INVALID if not found.
101 */
102uint8 Team_ActionStringToType(const char *name)
103{
104 uint8 type;
105 if (name == NULL) return TEAM_ACTION_INVALID;
106
107 for (type = 0; type < TEAM_ACTION_MAX; type++) {
108 if (strcasecmp(g_table_teamActionName[type], name) == 0) return type;
109 }
110
111 return TEAM_ACTION_INVALID;
112}

Callers 1

Scenario_Load_TeamFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected