Mail Archives: djgpp/1998/07/25/20:16:45
From: | oohoseoo AT aol DOT com (OoHOSEoO)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | why are dir.h's file defines so small?
|
Lines: | 25
|
Message-ID: | <1998072600112200.UAA09619@ladder03.news.aol.com>
|
NNTP-Posting-Host: | ladder03.news.aol.com
|
Date: | 26 Jul 1998 00:11:22 GMT
|
Organization: | AOL http://www.aol.com
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I was recently having problems with the dir.h function fnsplit().. it wasn't
outputing the long filenames correctly, if the filename was "A_LONG_FILE.EXT"
it would give me "A_LONG_FILE" as the filename, and "LE" and the extension. I
later realized that it is the buffer that is the problem. I changed it to this
to better suit my LFN needs:
#define MAXPATH 512
#define MAXDRIVE 3
#define MAXDIR 250
#define MAXFILE 250
#define MAXEXT 9
but why was it so small before?
#define MAXPATH 80
#define MAXDRIVE 3
#define MAXDIR 66
#define MAXFILE 9
#define MAXEXT 5
Just curious..
James (OoHOSEoO AT aol DOT com)
*Please enable "EMail Author" or "CC Author" before you post.. my thanks to all
that have :)
- Raw text -