Mail Archives: djgpp/1993/04/01/20:29:03
>I have another program which uses the following constants:
> _MAX_PATH
> _MAX_DRIVE
> _MAX_DIR
> _MAX_FNAME
> _MAX_EXT
>I looked through every C reference I have, and could find nothing about
>these things. I believe that they are MS-DOS specific, but I have not
These are the maximum number of characters, including null terminator, for
a filename with path, drive, etc. Values from Borland C 3.0 are:
#define MAXPATH 80
#define MAXDRIVE 3
#define MAXDIR 66
#define MAXFILE 9
#define MAXEXT 5
(Your names are slightly different because they are the Microsoft equivalents.
Borland defines their constants in DIR.H, and also defines MSC's in STDLIB.H)
- Raw text -