An example run of the program on a linux machine would be like this:
a.out file1.txt file2.avi file3 file4 file5.pdf directory_name
There can be any number of files given. So, we don't know how many to expect.
Being fairly new to C, I am not quite sure how to go about taking in a bunch of names without being given the specific numbers to take in and how to parse the names given so as to detect that the last name is the directory name.
Just looking to be pointed in the right direction on how to begin this.