root/ls.c

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. main

#include <dirent.h>
#include <stdio.h>
int main() {
        DIR *dp;
        struct dirent *ent;

        dp=opendir(".");
        while (ent = readdir(dp)) {
                printf("%d %s\n",ent->d_ino, ent->d_name);
        }
        return 0;
}


/* [<][>][^][v][top][bottom][index][help] */