Lines Matching defs:args
27 * @args: array of %MAX_OPT_ARGS &substring_t elements. Used to return match
32 * the location(s) of the arguments will be returned in the @args array.
34 static int match_one(char *s, const char *p, substring_t args[])
66 args[argc].from = s;
75 args[argc].to = s + len;
79 simple_strtol(s, &args[argc].to, 0);
82 simple_strtoul(s, &args[argc].to, 0);
85 simple_strtoul(s, &args[argc].to, 8);
88 simple_strtoul(s, &args[argc].to, 16);
90 if (args[argc].to == args[argc].from)
96 s = args[argc].to;
102 * match_token - Find a token (and optional args) in a string
107 * @args: array of %MAX_OPT_ARGS &substring_t elements. Used to return match
113 * tokens, and whose locations will be returned in the @args array.
115 int match_token(char *s, const match_table_t table, substring_t args[])
119 for (p = table; !match_one(s, p->pattern, args) ; p++)