「🏗️」 wip: parsing kinda working
This commit is contained in:
13
src/main.c
13
src/main.c
@ -6,6 +6,17 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
void init_args_t(args_t *args) {
|
||||
OPT_WHILE {
|
||||
args->opts[i] = false;
|
||||
args->arg[i] = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
void handle_options(args_t *args) {
|
||||
// TODO: need to make this function D:
|
||||
}
|
||||
|
||||
int main(int ac, char **av) {
|
||||
args_t args;
|
||||
if (ac > 1) {
|
||||
@ -15,7 +26,7 @@ int main(int ac, char **av) {
|
||||
else if (ret != EXIT_SUCCESS)
|
||||
return ret;
|
||||
else
|
||||
return EXIT_SUCCESS;
|
||||
handle_options(&args);
|
||||
} else {
|
||||
print_no_host(*av);
|
||||
return EX_USAGE;
|
||||
|
Reference in New Issue
Block a user