Split a pathname into its component parts
| 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 |
| 116 | static 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 |
no test coverage detected