Mail Archives: djgpp/1999/01/14/02:53:29
First, please don't post in HTML, it makes it very hard to read.
On Wed, 13 Jan 1999, Tim Hoskins wrote:
>
> if(!_dos_findfirst("*.*", _A_NORMAL, &ffblk))
> {
> printf("%s\n", ffblk.name);
> do while (!_dos_findnext(&ffblk))
> printf("%s\n", ffblk.name);
> }
>
> Can anybody tell me how to get DJGPP to output the filenames as long
> file names instead of short ones?
Don't use the _dos_... variety of functions, they don't support long
file names (this is explained in the docs, if you are using DJGPP
v2.02). For every _dos_... function there's a library function with a
similar name, but without the "_dos_" part, which does support long
file names; use that one instead. For example, instead of
_dos_findfirst and _dos_findnext use findfirst and findnext.
The _dos_... functions exists only for compatibility with the MSC
compiler, so they don't support long file names on purpose.
- Raw text -