• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

wine32 のプロジェクト


Commit MetaInfo

Révision5099f39e92fbca966b0e58783c59dca969c5e7d9 (tree)
l'heure2023-04-15 12:39:00
Auteurv02qabs <takesue090@gmai...>
Commiterv02qabs

Message de Log

cp-add-Flist.c

Change Summary

Modification

--- /dev/null
+++ b/clang/Flist.c
@@ -0,0 +1,22 @@
1+#include <stdio.h>
2+#include <dirent.h>
3+
4+int main(void)
5+{
6+ DIR *dir;
7+ struct dirent *dp;
8+ char dirpath[] = "/tmp";
9+
10+ dir = opendir(dirpath);
11+ if (dir == NULL) { return 1; }
12+
13+ dp = readdir(dir);
14+ while (dp != NULL) {
15+ printf("%s\n", dp->d_name);
16+ dp = readdir(dir);
17+ }
18+
19+ if (dir != NULL) { closedir(dir); }
20+
21+ return 0;
22+}