From be50fcea4e4482bff587119732223f1d4639f47b Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Wed, 28 Sep 2011 19:04:30 +0000 Subject: libiberty.h (countargv): Declare. include/ * libiberty.h (countargv): Declare. libiberty/ * argv.c (countargv): New function. From-SVN: r179318 --- include/libiberty.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/libiberty.h') diff --git a/include/libiberty.h b/include/libiberty.h index 32eb83a..cacde80 100644 --- a/include/libiberty.h +++ b/include/libiberty.h @@ -91,6 +91,10 @@ extern void expandargv PARAMS ((int *, char ***)); extern int writeargv PARAMS ((char **, FILE *)); +/* Return the number of elements in argv. */ + +extern int countargv (char**); + /* Return the last component of a path name. Note that we can't use a prototype here because the parameter is declared inconsistently across different systems, sometimes as "char *" and sometimes as -- cgit v1.1