From ac6fbacce69ad8d53099f1e6ab922c2e4bd6f9cc Mon Sep 17 00:00:00 2001 From: kaotisk Date: Sun, 27 Apr 2025 06:57:51 +0300 Subject: Updates.. better file names --- c_implementation/src/akfs_main.c | 43 ---------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 c_implementation/src/akfs_main.c (limited to 'c_implementation/src/akfs_main.c') diff --git a/c_implementation/src/akfs_main.c b/c_implementation/src/akfs_main.c deleted file mode 100644 index f1660cf..0000000 --- a/c_implementation/src/akfs_main.c +++ /dev/null @@ -1,43 +0,0 @@ -#include -#include -#include -#include - -static int ak_fs_usage() -{ - ak_log_debug(__func__, "Available commands:"); - ak_log_debug(__func__, "ak fs --list"); - return 1; -} - -int ak_fs_main(int argc, char** argv) -{ - int option; - int logind = 0; - static struct option long_options[] = { - {"help", no_argument, 0, 'h'}, - {"list", no_argument, 0, 'l'}, - {0,0,0,0} - }; - while(1) - { - option = getopt_long(argc, argv, "hl", long_options, &logind); - if ( option == -1 ) return ak_fs_usage(); - switch(option) - { - case 'h': - return ak_fs_usage(); - case 'l': - return ak_fs_ls(); - default: - printf("double lol\n"); - return 4; - } - } - return 0; -} - -int main(int argc, char **argv) -{ - return ak_fs_main(argc, argv); -} -- cgit v1.2.3