Lines Matching defs:args
18 * @args: array of %MAX_OPT_ARGS &substring_t elements. Used to return match
23 * the location(s) of the arguments will be returned in the @args array.
25 static int match_one(char *s, const char *p, substring_t args[])
57 args[argc].from = s;
66 args[argc].to = s + len;
70 simple_strtol(s, &args[argc].to, 0);
73 simple_strtoul(s, &args[argc].to, 0);
76 simple_strtoul(s, &args[argc].to, 8);
79 simple_strtoul(s, &args[argc].to, 16);
81 if (args[argc].to == args[argc].from)
87 s = args[argc].to;
93 * match_token: - Find a token (and optional args) in a string
98 * @args: array of %MAX_OPT_ARGS &substring_t elements. Used to return match
104 * tokens, and whose locations will be returned in the @args array.
106 int match_token(char *s, const match_table_t table, substring_t args[])
110 for (p = table; !match_one(s, p->pattern, args) ; p++)