Date: Thu, 22 Jun 2000 11:46:19 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Laurence Withers cc: djgpp AT delorie DOT com Subject: Re: findfirst and directories containing only subdirectories In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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?