Home
last modified time | relevance | path

Searched refs:arg (Results 1 – 2 of 2) sorted by relevance

/babblesim_base-3.7.0/libUtilv1/src/
Dbs_cmd_line.c54 int bs_is_option(const char *arg, const char *option, int with_value) { in bs_is_option() argument
58 if (arg[of] == '-') { in bs_is_option()
61 if (arg[of] == '-') { in bs_is_option()
66 if (strcmp(&arg[of], option) != 0) { in bs_is_option()
73 while (!(arg[of] == 0 && *option == 0)) { in bs_is_option()
75 if ((arg[of] == ':') || (arg[of] == '=')) { in bs_is_option()
81 if (arg[of] != *option) { in bs_is_option()
88 if (arg[of] == 0) { /* we need a value to follow */ in bs_is_option()
106 int bs_is_multi_opt(const char *arg, const char *option, uint* index, int with_value) { in bs_is_multi_opt() argument
109 if (arg[of] == '-') { in bs_is_multi_opt()
[all …]
Dbs_cmd_line.h75 int bs_is_option(const char *arg, const char *option, int with_value);
76 int bs_is_multi_opt(const char *arg, const char *option, uint* index, int with_value);
77 int bs_is_help(const char *arg);