void _splitpath(
const char *path,
char *drive,
char *dir,
char *fname,
char *ext
);
Parameters
- path (in)
- Full path.
- drive (out)
- Drive letter, followed by a colon (:). You can pass NULL for this parameter if you do not need the drive letter.
- dir (out)
- Directory path, including trailing slash. Forward slashes ( / ), backslashes ( \ ), or both may be used. You can pass NULL for this parameter if you do not need the directory path.
- fname (out)
- Base filename (no extension). You can pass NULL for this parameter if you do not need the filename.
- ext (out)
- Filename extension, including leading period (.). You can pass NULL for this parameter if you do not need the filename extension.