🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #4884

Re: Bug in TC findfirst()/findnext()!

#4884
From: Timo Suhonen
Date: Tue, 26 Feb 1991 07:33
22 lines
1665 bytes
gordon@osiris.cso.uiuc.edu (John Gordon) writes:

	   I submit the following program:

[program removed]

   According to the _Turbo_C_Bible_, calls to findfirst() and findnext()
   are supposed to return filenames that match *both* the given path *and* the
   given attribute.  However, the above program, which clearly specifies the
   *directory* attribute (FA_DIREC), finds both directories *and* plain files.
   Anyone have any comments/fixes/etc?

Find out what is this directory attribute (FA_DIRECT)!!! I have used 
findfirst() and findnext() with TC 1.5, 2.0 and TC++ 1.00 with no
problems. BUT I have defined myself the directory attribute (was it 0x10?).

I'll look my code at home next night...

--
Timo Suhonen        I am logged in, therefore I am        suhonen@nic.funet.fi
                                                          suhonen@kunto.jyu.fi
   Opinions(?) are mine (if not stolen), NOT those of Univ. of Jyvaskyla.
Technical Details
Message-ID: <SUHONEN.91Feb26083359@kunto.jyu.fi>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!jarthur!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!news.funet.fi!tukki.jyu.fi!jyu.fi!suhonen
References: <1991Feb25.192823.18224@ux1.cso.uiuc.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!jarthur!elroy.jpl.nasa.gov!swrinde!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!news.funet.fi!tukki.jyu.fi!jyu.fi!suhonen
From: suhonen@kunto.jyu.fi (Timo Suhonen)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Bug in TC findfirst()/findnext()!
Message-ID: <SUHONEN.91Feb26083359@kunto.jyu.fi>
Date: 26 Feb 91 07:33:59 GMT
References: <1991Feb25.192823.18224@ux1.cso.uiuc.edu>
Sender: news@tukki.jyu.fi (News articles)
Organization: University of Jyvaskyla, Faculty of Sport and Health Sciences
Lines: 22
In-Reply-To: gordon@osiris.cso.uiuc.edu's message of 25 Feb 91 19:28:23 GMT
Nntp-Posting-Host: kunto.jyu.fi