cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/14/02:53:29

Date: Thu, 14 Jan 1999 09:52:14 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Tim Hoskins <hoskinst AT cadvision DOT com>
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: <Pine.SUN.3.91.990114095129.29871K-100000@is>
MIME-Version: 1.0
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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019