delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/06/22/04:46:55

Date: Thu, 22 Jun 2000 11:46:19 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Laurence Withers <lwithers AT lwithers DOT demon DOT co DOT uk>
cc: djgpp AT delorie DOT com
Subject: Re: findfirst and directories containing only subdirectories
In-Reply-To: <FOKFUUAqpSU5Ew8b@lwithers.demon.co.uk>
Message-ID: <Pine.SUN.3.91.1000622114601.24311J@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Wed, 21 Jun 2000, Laurence Withers wrote:

> int main()
> {
>     ffblk B;
>     string s;
>     cout << "where? ";
>     cin >> s;
> 
>     int i = findfirst(s.c_str(), &B, FA_DIREC);
>     cout << "return value " << i << "; errno " << errno << endl;
>     return 0;
> }
> - ------------------------------------------------------------------------
> 
> Create a subdir, say c:\a
> Then create c:\a\b
> 
> Now run this and type "c:\a\*" (excluding quotes).
> I get "return value 22; errno 22"

I cannot reproduce this: I get "return value 0; errno 0" in this
case.

Please tell on what OS (DOS or Windows; which version) are you running
this program, and also the command line used to compile and link the
program.  Also, what versions of DJGPP and the compiler do you have
installed?

- Raw text -


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