MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / appendSlash

Function appendSlash

TheForceEngine/TFE_Settings/settings.cpp:1135–1143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1133 }
1134
1135 void appendSlash(char* path)
1136 {
1137 size_t len = strlen(path);
1138 if (len == 0) { return; }
1139 if (path[len - 1] == '\\' || path[len - 1] == '/') { return; }
1140
1141 path[len] = '/';
1142 path[len + 1] = 0;
1143 }
1144
1145 void parseDark_ForcesSettings(const char* key, const char* value)
1146 {

Callers 2

parseDark_ForcesSettingsFunction · 0.85
parseOutlawsSettingsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected