prefux gettokens/getfields with uc_
This commit is contained in:
+1
-1
@@ -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
@@ -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
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user