summaryrefslogtreecommitdiff
path: root/src/u8c/isspace.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/u8c/isspace.c')
-rw-r--r--src/u8c/isspace.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/u8c/isspace.c b/src/u8c/isspace.c
index 8b1ad9b..deca03c 100644
--- a/src/u8c/isspace.c
+++ b/src/u8c/isspace.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/isspace.h>
-uint_least8_t u8c_isspace(uint_least8_t * const _res,uint_least32_t const _chr) {
+bool u8c_isspace(uint_least8_t * const _res,char32_t const _chr) {
assert(_res != NULL);
switch(_chr) {
default:
@@ -32,5 +33,5 @@ uint_least8_t u8c_isspace(uint_least8_t * const _res,uint_least32_t const _chr)
*_res = UINT8_C(0x1);
break;
}
- return UINT8_C(0x0);
+ return false;
}