aboutsummaryrefslogtreecommitdiff
path: root/include/libiberty.h
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2011-09-28 19:04:30 +0000
committerDoug Evans <devans@gcc.gnu.org>2011-09-28 19:04:30 +0000
commitbe50fcea4e4482bff587119732223f1d4639f47b (patch)
treefdfb0d01e1c901837ac5426759f458176364fa86 /include/libiberty.h
parentd92aed064711dceb6caf355d064759224ce9b42a (diff)
downloadgcc-be50fcea4e4482bff587119732223f1d4639f47b.zip
gcc-be50fcea4e4482bff587119732223f1d4639f47b.tar.gz
gcc-be50fcea4e4482bff587119732223f1d4639f47b.tar.bz2
libiberty.h (countargv): Declare.
include/ * libiberty.h (countargv): Declare. libiberty/ * argv.c (countargv): New function. From-SVN: r179318
Diffstat (limited to 'include/libiberty.h')
-rw-r--r--include/libiberty.h4
1 files changed, 4 insertions, 0 deletions
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