summaryrefslogtreecommitdiff
path: root/lib/libc/wctype/wctype.c
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-07 22:22:16 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-07 22:22:16 +0100
commit8f9e448b2ef6db7cd905540c21f3c5b190e7a1e7 (patch)
treeae0285dd15042d1e9236a5ce2e60daf65acbdca0 /lib/libc/wctype/wctype.c
parentfc00c656c96528112d05cf0edf8631bd5eaea446 (diff)
Add bin/true and bin/false implementations
- Added assembly implementations for `true` and `false` commands. - Updated Kbuild files to include new binaries. - Removed unused libraries and headers. - Cleaned up makefile and unused code.
Diffstat (limited to 'lib/libc/wctype/wctype.c')
-rw-r--r--lib/libc/wctype/wctype.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/lib/libc/wctype/wctype.c b/lib/libc/wctype/wctype.c
deleted file mode 100644
index 0495ba8c..00000000
--- a/lib/libc/wctype/wctype.c
+++ /dev/null
@@ -1,32 +0,0 @@
-#include <libc.h>
-#include <wctype.h>
-#include <string.h>
-
-wctype_t wctype(const char *property)
-{
- int i;
- const char *ptr;
- static const char n[] = "alnum\0"
- "alpha\0"
- "blank\0"
- "cntrl\0"
- "digit\0"
- "graph\0"
- "lower\0"
- "print\0"
- "punct\0"
- "space\0"
- "upper\0"
- "xdigit";
-
- for (i = 1, ptr = n; *ptr; i++, ptr += strlen(ptr) + 1)
- if (!strcmp(property, ptr))
- return i;
-
- return 0;
-}
-
-weak wctype_t wctype_l(const char *property, locale_t unused locale)
-{
- return wctype(property);
-}