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.
Path-Name Field Limits
◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
Constant: _MAX_DIR, _MAX_DRIVE, _MAX_EXT, _MAX_FNAME, _MAX_PATH
Include: <stdlib.h>
Context: _fullpath, getcwd, _getdcwd, _makepath, _splitpath
Synopsis: The maximum length for the path name, and for the
individual fields within the path name.
The constants and their meanings are as follows:
Constant Meaning
_MAX_DIR Maximum length of directory component
_MAX_DRIVE Maximum length of drive component
_MAX_EXT Maximum length of extension component
_MAX_FNAME Maximum length of file-name component
_MAX_PATH Maximum length of full path name
The sum of the fields should not exceed _MAX_PATH. The limit
_MAX_PATH is larger than any current version of DOS or OS/2 can
handle.