15 if (strcmp(str, opt_list[i].option.name) == 0) {
22static int is_str_option(
const char *str,
int *nb_param)
42 for (
int i = 1; i < ac - 1; ++i) {
43 if (is_str_option(av[i], &nb_param) == -1)
#define NB_PARAM
! PARSING CONSTANTS !!
int get_nb_parameter(int ac, const char **av)
Get the number of parameter passed to the program.
int is_param(const char *str, const struct option_list_s *opt_list)
Check if a string is a parameter.