diff options
Diffstat (limited to 'src/u8c/isdigit.c')
-rw-r--r-- | src/u8c/isdigit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/u8c/isdigit.c b/src/u8c/isdigit.c index ebfd7c2..e4c6f78 100644 --- a/src/u8c/isdigit.c +++ b/src/u8c/isdigit.c @@ -14,10 +14,11 @@ If not, see <https://www.gnu.org/licenses/>. */ # include <assert.h> +# include <stdbool.h> # include <stddef.h> # include <stdint.h> # include <u8c/isdigit.h> -uint_least8_t u8c_isdigit(uint_least8_t * const _res,uint_least32_t const _chr) { +bool u8c_isdigit(uint_least8_t * const _res,char32_t const _chr) { assert(_res != NULL); switch(_chr) { default: @@ -38,5 +39,5 @@ uint_least8_t u8c_isdigit(uint_least8_t * const _res,uint_least32_t const _chr) *_res = UINT8_C(0x1); break; } - return UINT8_C(0x0); + return false; } |