delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1996/03/22/20:38:16

Date: Fri, 22 Mar 1996 20:36:34 -0500
From: dj (DJ Delorie)
Message-Id: <199603230136.UAA13758@delorie.com>
To: sandmann AT clio DOT rice DOT edu
CC: SGL00213 AT niftyserve DOT or DOT jp, djgpp-workers AT delorie DOT com
In-reply-to: <9603220141.AA15269@clio.rice.edu> (sandmann@clio.rice.edu)
Subject: Re: Re^2: Re:`stat' fails to detect nonexist

> > +          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 -


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