You may be looking for fopen(). What are you trying to do?
Agree, fopen() is probably the easiest way to check if the files exist (depending if that is all you need). If it returns anything but NULL, it means the file is there. You have to fclose() the files you successfully fopen() during checking also.
Freude, schöner Götterfunken Tochter aus Elysium, Wir betreten feuertrunken, Himmlische, dein Heiligtum! Deine Zauber binden wieder Was die Mode streng geteilt; Alle Menschen werden Brüder, Wo dein sanfter Flügel weilt.
Accept the past. Live for the present. Look forward to the future. Robot Fusion
"As our island of knowledge grows, so does the shore of our ignorance." John Wheeler
"[A] scientist looking at nonscientific problems is just as dumb as the next guy." Richard Feynman
"[P]etabytes of  data is not the same thing as understanding emergent mechanisms and structures." Jim Crutchfield