prefux gettokens/getfields with uc_

This commit is contained in:
Nils O. Selåsdal
2016-03-09 00:10:23 +01:00
parent c3c9f25dc6
commit 21703ded30
5 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -148,7 +148,7 @@ uc_cmd_tokenize(struct UCCmdTokenizer *t, const char *cmd, const char *delim)
delim = "\r\n\t\v ";
}
t->num_words = getfields(t->cmd_copy,
t->num_words = uc_getfields(t->cmd_copy,
t->cmd_words,
ARRAY_SIZE(t->cmd_words),
1,
+1 -1
View File
@@ -2,7 +2,7 @@
#include "ucore/string.h"
int
getfields(char *str, char **args, int max, int mflag, const char *set)
uc_getfields(char *str, char **args, int max, int mflag, const char *set)
{
char r;
int intok, narg;
+1 -1
View File
@@ -38,7 +38,7 @@ static char *qtoken(char *s, const char *sep)
return t;
}
int gettokens(char *str, char **args, int maxargs, const char *sep)
int uc_gettokens(char *str, char **args, int maxargs, const char *sep)
{
int nargs;