home *** CD-ROM | disk | FTP | other *** search
/ back2roots/padua / padua.7z / padua / uucp / auucp+-1.02 / fuucp_plus_src.lzh / compress / filetest.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-11-21  |  411 b   |  23 lines

  1. #include <stdio.h>
  2. #include "filelist.h"
  3.  
  4. void main(int argc, char *argv[])
  5. {
  6.   struct FileList *fl, *p;
  7.  
  8.   char directory[256];
  9.   char pattern[256];
  10.  
  11.   stcgfp(directory, argv[1]);
  12.   stcgfn(pattern, argv[1]);
  13.  
  14.   fl = Get_FileList(directory, pattern, PUNIX);
  15.  
  16.   for(p = fl; p != NULL; p = p->fl_next)
  17.   {
  18.     fprintf(stdout, "Name: %s - Size: %ld\n", p->fl_filename, p->fl_filesize);
  19.   }
  20.  
  21.   Free_FileList(fl);
  22. }
  23.