Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
_splitpath
◄Summary► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
The _splitpath routine breaks a full path name into its four
components. The <path> argument points to a buffer containing
the complete path name. The maximum size necessary for each
buffer is specified by the _MAX_DRIVE, _MAX_DIR, _MAX_FNAME, and
_MAX_EXT manifest constants (defined in STDLIB.H). The other
arguments point to the following buffers used to store the
path-name elements:
Buffer Description
<drive> Contains the drive letter followed by a colon (:) if a
drive is specified in <path>.
<dir> Contains the path of subdirectories, if any,
including the trailing slash. Forward slashes (/),
backslashes (\), or both may be present in <path>.
<fname> Contains the base file name without any extensions.
<ext> Contains the file-name extension, if any, including
the leading period (.).
The return parameters contain empty strings for any path-name
components not found in <path>.
Return Value
None.
-♦-