hallo.c
changeset 0 7d3c07f8acfb
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/hallo.c	Thu Dec 23 00:46:07 2010 +0100
@@ -0,0 +1,17 @@
+#include <dirent.h>
+#include <stdio.h>
+
+int main(int argc, char** argv)
+{
+
+    DIR *d = opendir(".");
+    struct dirent *dent;
+
+    puts("-- DIRECTORY LISTING --");
+
+    while ((dent = readdir(d))) {
+	printf("%8u %20s\n", (unsigned int)dent->d_ino, dent->d_name);
+    }
+
+    return 0;
+}