From ae19d7dd48477ea14dcadb94f07374a5fb2b5fda Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Thu, 20 Oct 2016 20:31:24 +0000 Subject: lib: Add helper function for working with argv, update bgpd to use it Signed-off-by: Quentin Young --- lib/command.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/command.h') 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); -- cgit v1.2.3