Solved

Check whether it is a plain file or directory.

Posted on 2000-03-01
4
192 Views
Last Modified: 2010-04-02

Hi, I am running gcc in solaris. In my home dir. i have several sub-directories. What i need to do is that based on an date given as an input by the user, i have to keep check the home directory and its sub-directories as well which are older than the given date. I dont' how to make it as a loop. please guide   me. hope you understand the question.

--gsbabu
0
Comment
Question by:gsbabu
  • 2
4 Comments
 
LVL 11

Expert Comment

by:alexo
ID: 2574405
Does your compiler support findfirst() and findnext() functions?
Check <io.h> for them.  If they exist, it is easy to write a recursive search.
0
 

Author Comment

by:gsbabu
ID: 2574440
Adjusted points to 40
0
 

Author Comment

by:gsbabu
ID: 2574441
No, My compiler dosen't support those functions, is there any other way to solve.

--gsbabu
0
 
LVL 84

Accepted Solution

by:
ozo earned 40 total points
ID: 2574451
man opendir, readdir
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now