summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-12-06 20:32:21 +0000
committerMiles Bader <miles@gnu.org>1995-12-06 20:32:21 +0000
commit3d77c9057d49a890b158a0c4fe6255738b02e6b5 (patch)
treefcd706553483229d7d8fed3ab04039a49a19b385
parent281953f69899aa158b3878c2385aa61f45194bfc (diff)
(argz_stringify): Add the SEP argument.
-rw-r--r--libshouldbeinlibc/=argz.c6
-rw-r--r--libshouldbeinlibc/=argz.h4
2 files changed, 5 insertions, 5 deletions
diff --git a/libshouldbeinlibc/=argz.c b/libshouldbeinlibc/=argz.c
index ee397160..90eb233d 100644
--- a/libshouldbeinlibc/=argz.c
+++ b/libshouldbeinlibc/=argz.c
@@ -92,9 +92,9 @@ 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. */
+ except the last into the character SEP. */
void
-argz_stringify(char *argz, int len)
+argz_stringify(char *argz, int len, int sep)
{
while (len > 0)
{
@@ -102,6 +102,6 @@ argz_stringify(char *argz, int len)
argz += part_len;
len -= part_len + 1;
if (len > 0)
- *argz++ = ' ';
+ *argz++ = sep;
}
}
diff --git a/libshouldbeinlibc/=argz.h b/libshouldbeinlibc/=argz.h
index c1f3c8fd..915d905f 100644
--- a/libshouldbeinlibc/=argz.h
+++ b/libshouldbeinlibc/=argz.h
@@ -34,7 +34,7 @@ int argz_count (char *argz, int len);
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);
+ except the last into the character SEP. */
+void argz_stringify(char *argz, int len, int sep);
#endif /* __ARGZ_H__ */