• ### Announcements

#### Archived

This topic is now archived and is closed to further replies.

# howto find files in code

## Recommended Posts

RPTD    340
im writing POSIX compatible code for my project but ran into one stoopid problem... how can i find files in my code? POSIX allows for file operation like fopen and such, that works, and for directory reading it has readdir and co. problem is only that readdir doesnt tell me (or at least i can`t be assured a POSIX system can tell me), if a directory entry is a file or directory. anybody knows if there is a portable function for this or do i have to #ifdef my way to success?

##### Share on other sites
George2    187
stat (look into it''s man pages)