1 /* include <dirent.h> */
2 /* include <stdbool.h> */
4 static inline bool dirent_directory_p(const struct dirent
*d
)
6 return d
->d_type
== DT_DIR
;
9 static inline bool dirent_regular_p(const struct dirent
*d
)
11 return d
->d_type
== DT_REG
;