summaryrefslogtreecommitdiff
path: root/string/argz.h
diff options
context:
space:
mode:
Diffstat (limited to 'string/argz.h')
-rw-r--r--string/argz.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/string/argz.h b/string/argz.h
index e17b742cf7..71e94c9167 100644
--- a/string/argz.h
+++ b/string/argz.h
@@ -17,9 +17,9 @@
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#ifndef __ARGZ_H__
+#ifndef _ARGZ_H
+#define _ARGZ_H 1
-#define __ARGZ_H__ 1
#include <features.h>
#define __need_error_t
@@ -103,6 +103,16 @@ extern error_t __argz_insert __P ((char **__argz, size_t *__argz_len,
char *__before, __const char *__entry));
extern error_t argz_insert __P ((char **__argz, size_t *__argz_len,
char *__before, __const char *__entry));
+
+/* Replace any occurances of the string STR in ARGZ with WITH, reallocating
+ ARGZ as necessary. If REPLACE_COUNT is non-zero, *REPLACE_COUNT will be
+ incremented by number of replacements performed. */
+extern error_t __argz_replace (char **__argz, size_t *__argz_len,
+ __const char *__str, __const char *__with,
+ unsigned *__replace_count);
+extern error_t argz_replace (char **__argz, size_t *__argz_len,
+ __const char *__str, __const char *__with,
+ unsigned *__replace_count);
/* Returns the next entry in ARGZ & ARGZ_LEN after ENTRY, or NULL if there
are no more. If entry is NULL, then the first entry is returned. This