MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ddio_SplitPath

Function ddio_SplitPath

legacy/D3Launch/D3Launch.cpp:1167–1174  ·  view source on GitHub ↗

Split a pathname into its component parts

Source from the content-addressed store, hash-verified

1165
1166// Split a pathname into its component parts
1167void ddio_SplitPath(const char *srcPath, char *path, char *filename, char *ext) {
1168 char drivename[_MAX_DRIVE], dirname[_MAX_DIR];
1169
1170 _splitpath(srcPath, drivename, dirname, filename, ext);
1171
1172 if (path)
1173 sprintf(path, "%s%s", drivename, dirname);
1174}

Callers 1

SaveThemeFileMethod · 0.50

Calls 1

_splitpathFunction · 0.85

Tested by

no test coverage detected