diff options
author | Miles Bader <miles@gnu.org> | 1995-05-18 14:36:02 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1995-05-18 14:36:02 +0000 |
commit | cd2643075673c7cb37b0413b942195ceb37b5983 (patch) | |
tree | 71bc675b2208f940ddc6bb1ec7605af43342cafe | |
parent | 4d5adf29957f697f0a77ae13b7057cba844c19a0 (diff) |
Declare argz_count and argz_extract.
-rw-r--r-- | libshouldbeinlibc/=argz.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libshouldbeinlibc/=argz.h b/libshouldbeinlibc/=argz.h index f518bb1e..c1f3c8fd 100644 --- a/libshouldbeinlibc/=argz.h +++ b/libshouldbeinlibc/=argz.h @@ -26,6 +26,13 @@ ENOMEM is returned, otherwise 0. The result can be destroyed using free. */ error_t argz_create(char **argv, char **argz, int *len); +/* Returns the number of strings in ARGZ. */ +int argz_count (char *argz, int len); + +/* Puts pointers to each string in ARGZ into ARGV, which must be large enough + to hold them all. */ +void argz_extract (char *argz, int len, char **argv); + /* Make '\0' separated arg vector ARGZ printable by converting all the '\0's except the last into spaces. */ void argz_stringify(char *argz, int len); |