Mail Archives: djgpp/2000/06/22/04:46:55
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 -