diff options
-rw-r--r-- | libshouldbeinlibc/=argz.c | 6 | ||||
-rw-r--r-- | libshouldbeinlibc/=argz.h | 4 |
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__ */ |