- 189 名前:133 [2005/06/16(木) 15:28:01 ]
- 優しいお言葉ありがとうございます。それでは貼らせていただきます。
お願いします。見た感じ一覧が取得できそうだったのですが、サブフォルダ配下 のファイル列挙が行われていなさそうなのです。 2レスにわけます。 #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <stdlib.h> #include <ftw.h> #include <time.h> #include <dirent.h> int fn (const char *, const struct stat *, int); void main (int argc, char *argv[] ){ if (ftw (argv[1], fn, 10) != 0) perror ("ftw"); exit (2); exit (0); }
|

|