diff options
author | jozan <jozan@noemail.net> | 2020-11-05 20:16:00 +0000 |
---|---|---|
committer | jozan <jozan@noemail.net> | 2020-11-05 20:16:00 +0000 |
commit | 3c7eee6494a7452272ac1008f0d77c4230763549 (patch) | |
tree | 5225e0e56da6995c5f5ce96e2b94cb6aceb1cf63 /src/c_unixize.c | |
parent | Now getting directory files (diff) | |
download | unixize-3c7eee6494a7452272ac1008f0d77c4230763549.tar.gz unixize-3c7eee6494a7452272ac1008f0d77c4230763549.tar.bz2 unixize-3c7eee6494a7452272ac1008f0d77c4230763549.tar.xz unixize-3c7eee6494a7452272ac1008f0d77c4230763549.tar.zst unixize-3c7eee6494a7452272ac1008f0d77c4230763549.zip |
Reading in progress
FossilOrigin-Name: c8e2947b1c632acc386ad416322affb951f4542b866a4b252b4cc5b0f41ee831
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); } |