diff options
author | jozan <jozan@noemail.net> | 2020-11-08 13:57:55 +0000 |
---|---|---|
committer | jozan <jozan@noemail.net> | 2020-11-08 13:57:55 +0000 |
commit | 6dac850c4cf052ed74b63e22139aac3c2fb09eca (patch) | |
tree | df49199eee89d3ce8c6822356749dcd75c93d7b7 /src/u_utils.c | |
parent | It's starting to work (diff) | |
download | unixize-6dac850c4cf052ed74b63e22139aac3c2fb09eca.tar.gz unixize-6dac850c4cf052ed74b63e22139aac3c2fb09eca.tar.bz2 unixize-6dac850c4cf052ed74b63e22139aac3c2fb09eca.tar.xz unixize-6dac850c4cf052ed74b63e22139aac3c2fb09eca.tar.zst unixize-6dac850c4cf052ed74b63e22139aac3c2fb09eca.zip |
Trying wchar_t
FossilOrigin-Name: 3fd5a4e2f25e3b2a17e73a330cce40833dc30be40776a117bde9af3d4adebfde
Diffstat (limited to 'src/u_utils.c')
-rw-r--r-- | src/u_utils.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/u_utils.c b/src/u_utils.c index 65b59a3..cc2f893 100644 --- a/src/u_utils.c +++ b/src/u_utils.c @@ -215,3 +215,20 @@ u_decrease_subpath(char subp[]) *p = 0x00; } } + +bool_t +u_ischarset +(wchar_t c, + const wchar_t cs[]) +{ + wchar_t *p; + + p = (wchar_t*)cs; + while (*p != 0x00 && *p != c) { + p++; + } + if (*p != 0x00) { + return (TRUE); + } + return (FALSE); +} |