Mail Archives: djgpp-workers/1996/03/22/20:38:16
> > + if (stricmp(p,ffblk->ff_name)){
>
> This is non ANSI so can't be called in this routine. I actually
> like having the code in stat() instead, since findfirst is supposed to
> be a simple wrapper around the dos-like call. But I have no strong
> preferences, as long as the above would be replaced with something
> ansified.
I have strong preferences. findfirst() should fail just like the
Borland/Microsoft versions do, for tricky cases like this. Adding
special code to stat() is better, since stat() is supposed to act like
unix, whereas findfirst is a simple dos wrapper.
- Raw text -