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

Function Structure_StringToType

src/structure.c:352–362  ·  view source on GitHub ↗

* Convert the name of a structure to the type value of that structure, or * STRUCTURE_INVALID if not found. */

Source from the content-addressed store, hash-verified

350 * STRUCTURE_INVALID if not found.
351 */
352uint8 Structure_StringToType(const char *name)
353{
354 uint8 type;
355 if (name == NULL) return STRUCTURE_INVALID;
356
357 for (type = 0; type < STRUCTURE_MAX; type++) {
358 if (strcasecmp(g_table_structureInfo[type].o.name, name) == 0) return type;
359 }
360
361 return STRUCTURE_INVALID;
362}
363
364/**
365 * Create a new Structure.

Callers 2

Scenario_Load_StructureFunction · 0.85
ReadProfileIniFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected