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

Function dd_SplitPath

module/module.cpp:116–121  ·  view source on GitHub ↗

Split a pathname into its component parts

Source from the content-addressed store, hash-verified

114#if defined(WIN32) // INSTEAD OF MAKING MODULE HAVE DEPENDENCIES, PUT THE 2 DDIO FUNCTIONS I NEED HERE
115// Split a pathname into its component parts
116static void dd_SplitPath(const char *srcPath, char *path, char *filename, char *ext) {
117 char drivename[_MAX_DRIVE], dirname[_MAX_DIR];
118 _splitpath(srcPath, drivename, dirname, filename, ext);
119 if (path)
120 sprintf(path, "%s%s", drivename, dirname);
121}
122// Constructs a path in the local file system's syntax
123// newPath: stores the constructed path
124// absolutePathHeader: absolute path on which the sub directories will be appended

Callers 5

mod_GetRealModuleNameFunction · 0.85
mod_LoadModuleFunction · 0.85
StartMethod · 0.85
NextMethod · 0.85

Calls 1

_splitpathFunction · 0.85

Tested by

no test coverage detected