diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2016-10-20 20:31:24 +0000 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2016-10-20 20:31:24 +0000 |
| commit | ae19d7dd48477ea14dcadb94f07374a5fb2b5fda (patch) | |
| tree | b9fa90250fc351d7cbcd1d29e9ab6f85746f7e50 /lib/command.h | |
| parent | e8d5696d45a0f713b080f8b06f462febb5d38057 (diff) | |
lib: Add helper function for working with argv, update bgpd to use it
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/command.h')
| -rw-r--r-- | lib/command.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/command.h b/lib/command.h index aad0c6b3e6..0e2d27f19c 100644 --- a/lib/command.h +++ b/lib/command.h @@ -408,6 +408,7 @@ extern void install_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); +extern int argv_find (struct cmd_token **argv, int argc, const char *text, int *index); extern vector cmd_make_strvec (const char *); extern void cmd_free_strvec (vector); |
