I\'ve seen a few methods for checking the existence of a file in C. However, everything I\'ve seen works for a specific file name. I would like to check for any file that
To my knowledge, that's how it should be done.
For each name d_name of the file, you can check it's length and if it has at least 8 characters, strcmp that 8 first characters to lockfile.
d_name
strcmp
You can also use for that check.
As for the iteration, I believe that's he best way to go.