Files
ft_ping/includes/opt_parse.h

20 lines
341 B
C

#pragma once
#include <help.h>
#include <stdbool.h>
#include <stdint.h>
typedef struct {
bool opts[OPT_NB];
int arg[OPT_NB];
char **hosts;
} args_t;
/**
* @brief Can be used to parse the command line options
* @param av The argv of the program
* @param args The struct of argument
*/
int opt_parse(char **av, args_t *args);