Mail Archives: djgpp-workers/1996/03/24/10:06:19
On Thu, 21 Mar 1996, Charles Sandmann wrote:
> > + if (stricmp(p,ffblk->ff_name)){
>
> This is non ANSI so can't be called in this routine.
No, `stricmp' is #define'd on <libc/stubs.h> as `__stricmp', so it's OK
to use it here. Besides, `stat' isn't ANSI at all, so only
POSIX-compliance is an issue here.
> 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
On a second thought, I like it better in `stat'. The correction in
`findfirst' is a kludge whose only reason is to make `stat' work:
`findfirst' will still fail if called with a wildcard.
- Raw text -