summaryrefslogtreecommitdiff
path: root/src/user/lib/string.c
diff options
context:
space:
mode:
authordzwdz2022-08-14 12:30:23 +0200
committerdzwdz2022-08-14 12:30:23 +0200
commit95c4d23af122131fd0f83dee70e9cce65c46d49f (patch)
tree133520621b9a60e06d1fd4d8eb77e45018f79808 /src/user/lib/string.c
parent9cb8f33830a85cd8c660f435db643a77dc22219c (diff)
user/libc: ctype.h
Diffstat (limited to 'src/user/lib/string.c')
-rw-r--r--src/user/lib/string.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/user/lib/string.c b/src/user/lib/string.c
index a6ac75b..9c347d0 100644
--- a/src/user/lib/string.c
+++ b/src/user/lib/string.c
@@ -1,10 +1,7 @@
+#include <ctype.h>
#include <errno.h>
#include <string.h>
-int isspace(char c) {
- return c == ' ' || c == '\t' || c == '\n';
-}
-
long strtol(const char *restrict s, char **restrict end, int base) {
long res = 0;
int sign = 1;