OrionUserland
Barry Using POSIX names in structs 2e11092 (3 years, 3 months ago)
diff --git a/sh/parser.c b/sh/parser.c
index 6c0af04..d3111ca 100644
--- a/sh/parser.c
+++ b/sh/parser.c
@@ -2,17 +2,17 @@
/* Split a string into separate strings */
int
-argparser(char *str, char **res)
+argparser(char sep, char *str, char **res)
{
int count = 0;
char *finder;
memset(res, 0, 1024);
finder = str;
- while (*finder == ' ') finder++;
+ while (*finder == sep) finder++;
res[count++] = finder;
while (*finder) {
- if (*finder == ' ') {
+ if (*finder == sep) {
res[count++] = finder + 1;
*finder = '\0';
}