Date: Thu, 14 Jan 1999 09:52:14 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Tim Hoskins cc: djgpp AT delorie DOT com Subject: Re: LFN in Win95? How do I do it? In-Reply-To: <369D2CB2.93CCCA2E@cadvision.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com 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.