[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: findfirst(), etc.



Felix Kollmann wrote:

> I want to search for files:
> 
>         _filedata_t foo;
>         bool ind= findfirst (foo, "*.*");
>         findnext (ind, foo);
>         findclose (foo);
> 
> Perhaps, these functions are not 100%ly right. But I hope this make
> clear what I mean.

"man glob" will enlighten you. This is much better than findfirst and
friends, IMHO.

Also, make sure to search for "*" on Unix, not "*.*"! (that will find
only files with a "." in them!)

-- 
Pierre Phaneuf
Ludus Design, http://ludusdesign.com/
"First they ignore you. Then they laugh at you.
Then they fight you. Then you win." -- Gandhi