diff options
author | Rob Landley <rob@landley.net> | 2020-10-11 02:59:54 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2020-10-11 02:59:54 -0500 |
commit | 67bd0be1a4ed817954c9dcededf9bd9cb8c2f431 (patch) | |
tree | 4df0aa1044af467469e77c757bbf58dffe2f6178 /lib/lib.h | |
parent | 0f2658c806586190be3aca21826e77fff9e50f1b (diff) | |
download | toybox-67bd0be1a4ed817954c9dcededf9bd9cb8c2f431.tar.gz |
toysh: more variable/wildcard plumbing and tests.
Diffstat (limited to 'lib/lib.h')
-rw-r--r-- | lib/lib.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -74,11 +74,11 @@ void get_optflags(void); // Don't warn about failure to stat #define DIRTREE_SHUTUP 16 // Breadth first traversal, conserves filehandles at the expense of memory -#define DIRTREE_BREADTH 32 +#define DIRTREE_BREADTH 32 // TODO not implemented yet // skip non-numeric entries #define DIRTREE_PROC 64 // Return files we can't stat -#define DIRTREE_STATLESS 128 +#define DIRTREE_STATLESS 128 // Don't look at any more files in this directory. #define DIRTREE_ABORT 256 @@ -229,6 +229,7 @@ long long xstrtol(char *str, char **end, int base); long long atolx(char *c); long long atolx_range(char *numstr, long long low, long long high); int stridx(char *haystack, char needle); +int wctoutf8(char *s, unsigned wc); int utf8towc(wchar_t *wc, char *str, unsigned len); char *strlower(char *s); char *strafter(char *haystack, char *needle); |