diff options
Diffstat (limited to 'src/c_unixize.c')
-rw-r--r-- | src/c_unixize.c | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/src/c_unixize.c b/src/c_unixize.c index c78af26..9f4dbde 100644 --- a/src/c_unixize.c +++ b/src/c_unixize.c @@ -45,22 +45,29 @@ * This is the main function and entrypoint of the program. */ -#include "c_opts.h" +#include <stdio.h> +#include <stddef.h> -void -c_init(struct opts_s* opts) -{ - (void)opts; -} +#include "c_lfiles.h" +#include "c_opts.h" int -main(int argc, - const char* argv[]) +main +(int argc, + const char* argv[]) { struct opts_s opts; + struct lfiles_s* files; c_get_opts(&opts, argc, argv); - c_init(&opts); + files = c_lfiles_gather(); + if (files == NULL) { + return (1); + } + while (files != NULL) { + printf("'%s' - %hhu\n", files->filename, files->filetype); + files = files->next; + } return (0); } |