delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/03/24/10:06:19

Date: Sun, 24 Mar 1996 17:02:12 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Charles Sandmann <sandmann AT clio DOT rice DOT edu>
Cc: Kenji Masaki <SGL00213 AT niftyserve DOT or DOT jp>, djgpp-workers AT delorie DOT com
Subject: Re: Re^2: Re:`stat' fails to detect nonexist
In-Reply-To: <9603220141.AA15269@clio.rice.edu>
Message-Id: <Pine.SUN.3.91.960324165826.29835K-100000@is>
Mime-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019