Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a C program myfind whose behavior resembles that of the system command find. myfind accepts the following parameters: $ myfind filename startpath where filename
Write a C program myfind whose behavior resembles that of the system command find.
myfind accepts the following parameters:
$ myfind filename startpath
where
filename is a substring that is matched against each filename in each directory that myfindinspects. If a file name matches filename or if the substring filename occurs within a file name, the name of that file is printed.
startpath is an optional parameter that specifies the directory where myfind must start the search. If this parameter is not specified, myfind starts in the current directory.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started