34 lines
484 B
C
34 lines
484 B
C
#include <help.h>
|
|
#include <ping.h>
|
|
#include <opt_parse.h>
|
|
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <sysexits.h>
|
|
|
|
int opt_parse(char **av, args_t *args) {
|
|
char *exec_name = *av;
|
|
|
|
(void)args;
|
|
while (*av != NULL) {
|
|
char *a = *av;
|
|
|
|
if (*a == '-') {
|
|
printf("omg an opt\n");
|
|
} else {
|
|
|
|
}
|
|
av++;
|
|
}
|
|
|
|
if (av) {
|
|
print_no_host(exec_name);
|
|
return EX_USAGE;
|
|
}
|
|
return EXIT_SUCCESS;
|
|
}
|
|
|
|
|
|
// 127.0.0.1 localhost : no error wtf EZ 42 parsing + ratio
|
|
// -v 127.0.0.1
|