diff options
author | ftrvxmtrx <ftrvxmtrx@gmail.com> | 2015-06-09 00:15:59 +0200 |
---|---|---|
committer | ftrvxmtrx <ftrvxmtrx@gmail.com> | 2015-06-09 00:15:59 +0200 |
commit | 0fc761bc845bd9795f05206e24621c0f5e76423e (patch) | |
tree | 2bad439a40d10f7970e167c138d36fbb50586ee8 /sys/src/cmd/unix/u9fs/tokenize.c | |
parent | 7a95bef00e41cbab2d97f6392b221e6192335343 (diff) |
unix is BUGGERED. remove it
Diffstat (limited to 'sys/src/cmd/unix/u9fs/tokenize.c')
-rw-r--r-- | sys/src/cmd/unix/u9fs/tokenize.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/sys/src/cmd/unix/u9fs/tokenize.c b/sys/src/cmd/unix/u9fs/tokenize.c deleted file mode 100644 index 41ab050e3..000000000 --- a/sys/src/cmd/unix/u9fs/tokenize.c +++ /dev/null @@ -1,42 +0,0 @@ -#include <plan9.h> - -int -getfields(char *str, char **args, int max, int mflag, char *set) -{ - Rune r; - int nr, intok, narg; - - if(max <= 0) - return 0; - - narg = 0; - args[narg] = str; - if(!mflag) - narg++; - intok = 0; - for(;; str += nr) { - nr = chartorune(&r, str); - if(r == 0) - break; - if(utfrune(set, r)) { - if(narg >= max) - break; - *str = 0; - intok = 0; - args[narg] = str + nr; - if(!mflag) - narg++; - } else { - if(!intok && mflag) - narg++; - intok = 1; - } - } - return narg; -} - -int -tokenize(char *str, char **args, int max) -{ - return getfields(str, args, max, 1, " \t\n\r"); -} |