summaryrefslogtreecommitdiff
path: root/src/user/lib/include
diff options
context:
space:
mode:
authordzwdz2023-06-08 19:52:43 +0200
committerdzwdz2023-06-08 19:52:43 +0200
commit668655053911072741883fd258c23e9d0668a853 (patch)
tree182d76120ba9a31926614f190237c5eac998b3a6 /src/user/lib/include
parent8c1d2e29b9ef3472b46d6997ffde5ca38afdb5f3 (diff)
libc: move the strto* functions to stdlib.h, where they "belong"
Diffstat (limited to 'src/user/lib/include')
-rw-r--r--src/user/lib/include/stdlib.h5
-rw-r--r--src/user/lib/include/string.h5
2 files changed, 5 insertions, 5 deletions
diff --git a/src/user/lib/include/stdlib.h b/src/user/lib/include/stdlib.h
index 4a44bf6..08362b1 100644
--- a/src/user/lib/include/stdlib.h
+++ b/src/user/lib/include/stdlib.h
@@ -24,3 +24,8 @@ int abs(int i);
int atoi(const char *s);
double atof(const char *s);
+
+long strtol(const char *restrict s, char **restrict end, int base);
+unsigned long strtoul(const char *restrict s, char **restrict end, int base);
+unsigned long long strtoull(const char *restrict s, char **restrict end, int base);
+double strtod(const char *restrict s, char **restrict end);
diff --git a/src/user/lib/include/string.h b/src/user/lib/include/string.h
index 7a5400c..343664d 100644
--- a/src/user/lib/include/string.h
+++ b/src/user/lib/include/string.h
@@ -1,11 +1,6 @@
#pragma once
#include <shared/mem.h>
-// TODO move strto* to stdlib.h
-long strtol(const char *restrict s, char **restrict end, int base);
-unsigned long strtoul(const char *restrict s, char **restrict end, int base);
-unsigned long long strtoull(const char *restrict s, char **restrict end, int base);
-double strtod(const char *restrict s, char **restrict end);
char *strchr(const char *s, int c);
char *strrchr(const char *s, int c);