diff options
| author | Renato Westphal <renato@openbsd.org> | 2017-10-10 14:51:02 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-10 14:51:02 -0300 |
| commit | eafc51b47b0a82d215cbbcb72cc0f66978f1c80e (patch) | |
| tree | ef8cf6e4391a0d0b95767c79054fd75ddb6b288e /lib/command.h | |
| parent | a3a2db0a4a4cf4a87b5f7b68c027c95efd205c5a (diff) | |
| parent | b286ddb07a3317bc4b0cb664c947968062aa5ae1 (diff) | |
Merge pull request #1316 from donaldsharp/high_stuff
High stuff
Diffstat (limited to 'lib/command.h')
| -rw-r--r-- | lib/command.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/command.h b/lib/command.h index 8cccb62de3..e2d31decd4 100644 --- a/lib/command.h +++ b/lib/command.h @@ -380,6 +380,13 @@ extern void uninstall_element(enum node_type, struct cmd_element *); string with a space between each element (allocated using XMALLOC(MTYPE_TMP)). Returns NULL if shift >= argc. */ extern char *argv_concat(struct cmd_token **argv, int argc, int shift); + +/* + * It is preferred that you set the index initial value + * to a 0. This way in the future if you modify the + * cli then there is no need to modify the initial + * value of the index + */ extern int argv_find(struct cmd_token **argv, int argc, const char *text, int *index); |
