Re: A Q for C gurus

Jas (matt@nospam.uts.edu.au)
Fri, 20 Jan 1995 14:22:11 +1000 (EST)

Anthony Young wrote this...
>
>
>
> Hi guys,
>
> What I'm in the process of doing at the moment, is writing a shell for DOS
> that implements unix style substitution and completion. (Just to see if I
> can :D). I've basically got it working, except for one thing.
>
> I need to be able to search through a directory, and check to see if an
> entry is a subdirectory or not. I'm using Turbo C, and I've gone through all
> the functions I could see in the header files, but couldn't find much to help
> me. Is there someone around who knows of any functions I could use, or who can
> give me an idea on the logic to use, to check for directory status?
>
> Any help is appreciated.
> Thanx in advance :)
>
there is a function in the normal Unix C library for traversing
directories, but i cant remember its name off the top of my head.. probably
best to go look for it in {Free,Net}BSD source, and port it to DOS

Matt

-- 
Matthew Keenan   Systems Programmer   Information Technology Division
      University of Technology     Sydney Australia
email: matt@nospam.uts.edu.au   www: http://milliways.itd.uts.edu.au/~matt/
ph: +61 2 330 1390   fax: +61 2 330 1999   home: +61 2 416 5722

GCV 2.1 GAT/M/CS d--(-+) H-- s++:-- g+ p? !au a-(?) w+++ v+ C+++$ UVS++++$ P+>+++ L- 3+++ E-(++) N++ K W--- M+ V-- -po+(+) Y+ t+ !5>++ jx R+ G? !tv b+++ D++ B e+ u--(**) h- f+(*) r n- !y