www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/24/00:51:28

Newsgroups: comp.os.msdos.djgpp
From: Mark Habersack <grendel AT ananke DOT amu DOT edu DOT pl>
Subject: Re: 1 bug(?) open/readdir & glob
Message-ID: <R.Pine.NEB.3.95.960921153235.9148G-100000@ananke.amu.edu.pl>
Mime-Version: 1.0
Reply-To: grendel AT ananke DOT amu DOT edu DOT pl
Cc: djgpp AT delorie DOT com
Organization: None provided
In-Reply-To: <01b60b88$d68ba0c0$9000d6c1@bigpapa>
Date: Sat, 21 Sep 1996 13:33:39 GMT
Dj-Gateway: from mailing list djgpp AT delorie DOT com
To: "Erik L. Jensen" <eljensen AT online DOT no>
Lines: 26
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Reposting article removed by rogue canceller.

On 20 Sep 1996, Erik L. Jensen wrote:

>> > In djgpp it really doesn't matter whether you'll use findfirst/findnext
>or
>> > readdir. readdir() uses find... anyway.
>> 
>> Yes, It doesnt matter , but the problem is why you mentioned about it.
>> 
>> 
>
>Infact, it does matter if you want to quickly get hold of information like
>file size, attributes etc.
Right, but I meant in terms of using find... vs readdir().

>A readir() followed by stat() is much more complicated (try going throug
>the stat() code) and
>does little more than findxxx anyway..
That's right, but to write Unix compatible code you have to use stat anyway...

**********************************************************************
So if you ask me how do I feel inside, I could honestly tell you we've
been taken on a very long ride. And if my owners let me have free time
some day, with all good intention I would probably run away!
Clutching the short straw...
******************* http://ananke.amu.edu.pl/~grendel ****************

- Raw text -


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