From 59692c3fcd697728d9ec22d85c418bbffae02c60 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 30 Jun 2024 20:14:32 +0000 Subject: internals: nolibc: added ntux_isblank(). --- src/internal/ntux_nolibc_impl.c | 5 +++++ src/internal/ntux_nolibc_impl.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/internal/ntux_nolibc_impl.c b/src/internal/ntux_nolibc_impl.c index e20d046..c414bc8 100644 --- a/src/internal/ntux_nolibc_impl.c +++ b/src/internal/ntux_nolibc_impl.c @@ -63,6 +63,11 @@ char * ntux_strrchr(const char * ch, int c) return 0; } +int ntux_isblank(int c) +{ + return ((c == 0x20) || (c == 0x09)); +} + #ifdef NTUX_EXPORT int __stdcall ntux_entry_point(void * hinstance, uint32_t reason, void * reserved) { diff --git a/src/internal/ntux_nolibc_impl.h b/src/internal/ntux_nolibc_impl.h index eac2631..f68d282 100644 --- a/src/internal/ntux_nolibc_impl.h +++ b/src/internal/ntux_nolibc_impl.h @@ -16,6 +16,8 @@ #define strchr ntux_strchr #define strrchr ntux_strrchr +#define isblank ntux_isblank + #define calloc ntux_calloc #define free ntux_free -- cgit v1.2.3