diff options
author | midipix <writeonce@midipix.org> | 2024-06-30 20:14:32 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-06-30 20:14:32 +0000 |
commit | 59692c3fcd697728d9ec22d85c418bbffae02c60 (patch) | |
tree | ec54090f6ed100dc847856ad6becccccdde4cdfc | |
parent | 7fde1c21c4b68b3a217f65f7ec3b1895346d9569 (diff) | |
download | ntux-59692c3fcd697728d9ec22d85c418bbffae02c60.tar.bz2 ntux-59692c3fcd697728d9ec22d85c418bbffae02c60.tar.xz |
-rw-r--r-- | src/internal/ntux_nolibc_impl.c | 5 | ||||
-rw-r--r-- | src/internal/ntux_nolibc_impl.h | 2 |
2 files changed, 7 insertions, 0 deletions
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 |