Searched refs:nr_opts (Results 1 – 1 of 1) sorted by relevance
438 static struct option *add_opt(struct option *opts, size_t *nr_opts, in add_opt() argument441 opts = realloc(opts, (*nr_opts + 1) * sizeof(*opts)); in add_opt()444 opts[*nr_opts].name = name; in add_opt()445 opts[*nr_opts].has_arg = has_arg; in add_opt()446 opts[*nr_opts].flag = NULL; in add_opt()447 opts[*nr_opts].val = val; in add_opt()448 ++*nr_opts; in add_opt()452 static struct option *fill_common_opts(struct option *opts, size_t *nr_opts, in fill_common_opts() argument458 opts = add_opt(opts, nr_opts, desc->cmdline_name, has_arg, in fill_common_opts()701 size_t nr_opts = 0; in create_cmd() local[all …]