• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 234
  • Last Modified:

Check whether it is a plain file or directory.


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
gsbabu
Asked:
gsbabu
  • 2
1 Solution
 
alexoCommented:
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
 
gsbabuAuthor Commented:
Adjusted points to 40
0
 
gsbabuAuthor Commented:
No, My compiler dosen't support those functions, is there any other way to solve.

--gsbabu
0
 
ozoCommented:
man opendir, readdir
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now