diff options
Diffstat (limited to 'src/u8c/u32fndchr.c')
-rw-r--r-- | src/u8c/u32fndchr.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/u8c/u32fndchr.c b/src/u8c/u32fndchr.c index ab4b5e1..228c553 100644 --- a/src/u8c/u32fndchr.c +++ b/src/u8c/u32fndchr.c @@ -18,17 +18,15 @@ # include <stddef.h> # include <stdint.h> # include <u8c/SIZE_C.h> -# include <u8c/errtyp.h> -# include <u8c/seterr.h> -# include <u8c/u32fndchr.h> -# include <u8c/u32sz.h> +# include <u8c/err.h> +# include <u8c/u32.h> bool u8c_u32fndchr(size_t * const _pos,char32_t const * const _in,char32_t const _chr) { assert(_pos != NULL); assert(_in != NULL); for(register size_t n = SIZE_C(0x0);n <= SIZE_MAX;n += SIZE_C(0x1)) { register uint_least32_t const tmp = _in[n]; - if(tmp == UINT32_C(0x0)) { - if(_chr == UINT32_C(0x0)) { + if(tmp == U'\x0') { + if(_chr == U'\x0') { *_pos = n; return false; } |