From: Laurence Withers Newsgroups: comp.os.msdos.djgpp Subject: Re: findfirst and directories containing only subdirectories Date: Fri, 23 Jun 2000 12:53:32 +0100 Message-ID: References: <200006231014 DOT NAA28348 AT alpha DOT netvision DOT net DOT il> NNTP-Posting-Host: lwithers.demon.co.uk X-NNTP-Posting-Host: lwithers.demon.co.uk:194.222.80.1 X-Trace: news.demon.co.uk 961800012 nnrp-02:27527 NO-IDENT lwithers.demon.co.uk:194.222.80.1 X-Complaints-To: abuse AT demon DOT net MIME-Version: 1.0 X-Newsreader: Turnpike Integrated Version 5.01 S Lines: 24 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In article <200006231014 DOT NAA28348 AT alpha DOT netvision DOT net DOT il>, Eli Zaretskii writes >So either you posted a program that is different from what you >actually run, or there's some factor specific to your system that is >at work here. The program was copied via cut-and-paste, so that is not the problem. Obviously there is something wrong with my Win98 setup, and it's something I'm not too worried about (I primarily work under a DOS box, except for Internet stuff). >Note that there's nothing wrong with errno being non-zero, since you >didn't initialize it to zero before calling `findfirst'. But the >status returned by `findfirst' should indeed be zero in the case you >described. Sorry - I'm too used to error handling via exceptions to know how to use errno in any detail. Thanks very much for your help, and bye for now, -- Laurence Withers, lwithers AT lwithers DOT demon DOT co DOT uk http://www.lwithers.demon.co.uk/