Merge branch 'master' of ssh://gapil.gnulinux.it/srv/git/gapil
[gapil.git] / sources / myls.c
index bc2e1a944d58672287881f249eed48fd495b9dec..6215665ff7ef5aa355928b29c3adb35108d0eeb4 100644 (file)
  *
  * Author: S. Piccardi Jan. 2003
  *
- * $Id: myls.c,v 1.2 2003/01/04 17:24:30 piccardi Exp $
- *
  *****************************************************************************/
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <dirent.h>        /* directory */
-#include <stdlib.h>        /* C standard library */
-#include <unistd.h>
+#include <sys/types.h>   /* primitive system data types */
+#include <sys/stat.h>    /* file characteristics constants and functions */
+#include <dirent.h>      /* directory operation constants and functions */  
+#include <stdlib.h>      /* C standard library */
+#include <unistd.h>      /* unix standard library */
 
 #include "Gapil.h"
 /*
@@ -39,7 +37,7 @@
  */
 /* Help printing routine */
 void usage(void);
-/* computation function for DirScan */
+/* computation function for dir_scan */
 int do_ls(struct dirent * direntry);
 
 int main(int argc, char *argv[]) 
@@ -78,11 +76,11 @@ int main(int argc, char *argv[])
        printf("Wrong number of arguments %d\n", argc - optind);
         usage();
     }
-    DirScan(argv[1], do_ls);
+    dir_scan(argv[1], do_ls);
     exit(0);
 }
 /*
- * Routine to print file name and size inside DirScan
+ * Routine to print file name and size inside dir_scan
  */
 int do_ls(struct dirent * direntry) 
 {