Path Field Limits
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

Path Field Limits

#include <stdlib.h>

Remarks

These constants define the maximum length for the path and for the individual fields within the path.

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 filename component
_MAX_PATH Maximum length of full path

The sum of the fields should not exceed _MAX_PATH.

See Also

Global Constants

Show:
© 2016 Microsoft