Mail Archives: djgpp/1993/04/03/14:29:02
[Lines Deleted]
> 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
>
>Thanks...I had figured they would probably be specific to some compiler
>of another. Anyway, does anyone know what these constants are supposed
>to mean. I can throw in those #defines in a header file somewhere, but
>it would be Real Nice if I knew what they meant. Thanks, and I'll chat
>with you later...
These constants are to be used in dimensioning arrays that will be used
with the _splitpath() (MSC) function. This function takes a complete
path string and splits it up into the various components.
from quick help:
Include: <stdlib.h>
Syntax: void _splitpath( char *path, char *drive, char *dir,
char *fname, char *ext );
See also: _fullpath, _makepath
ed
--
- Raw text -