nftw

    1

    1答えて

    私は次のコードでnftwを使用して、ディレクトリツリー内のすべての.cファイルを取得しようとしている: static int gf(const char *path, const struct stat *st, int t, struct FTW *ftw) { if (t != FTW_F) return 0; if (strcmp(ext(path), ".c