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

Function ddio_SplitPath

ddio/winfile.cpp:183–190  ·  view source on GitHub ↗

Split a pathname into its component parts

Source from the content-addressed store, hash-verified

181
182// Split a pathname into its component parts
183void ddio_SplitPath(const char *srcPath, char *path, char *filename, char *ext) {
184 char drivename[_MAX_DRIVE], dirname[_MAX_DIR];
185
186 _splitpath(srcPath, drivename, dirname, filename, ext);
187
188 if (path)
189 sprintf(path, "%s%s", drivename, dirname);
190}
191
192void ddio_CopyFileTime(const std::filesystem::path &dest, const std::filesystem::path &src) {
193 HANDLE desthandle, srchandle;

Callers 15

ChangeSoundFileNameFunction · 0.50
OnAddSoundMethod · 0.50
OnSaveDocumentMethod · 0.50
OnCommandMethod · 0.50
OnCompileMethod · 0.50
OnCreatescriptMethod · 0.50
AddNewGameFileFunction · 0.50
IsScriptOutofDateFunction · 0.50
IsScriptOutofSyncFunction · 0.50
OnWtexdlgAddnewMethod · 0.50
OnAddNewSmallMethod · 0.50
OnAddNewTinyMethod · 0.50

Calls 1

_splitpathFunction · 0.85

Tested by

no test coverage detected