MyFind to perform the task of a simplified find Unix utility, in C programming
Posted on 2006-05-28
Write a C program, called myFind, to perform the task of a simplified find Unix utility. Your program, should look for a file name or a directory name(string), provided as a command line parameter, either in the current directory or in any of its sub directories. The search should be recursive so that all the subdirectories will be searched. Basically, the program will be searching a string pattern in a tree structure whoes root is the directory from which the program myFind has been called.
-You can assume that each item in the current directory is a subdirectory. However, if the item is a file, the opendir() system call will return NULL
- Ignore the 2 special directories . and ..
- When you consider a subdirectory, its pathname is the concatenation of the current directory pathnamr with the name of the subdirectory considered.