summaryrefslogtreecommitdiff
path: root/src/init
diff options
context:
space:
mode:
authordzwdz2021-11-14 18:04:38 +0100
committerdzwdz2021-11-14 18:04:38 +0100
commitd2df6a9c064965b62c8b966bb93a81b663b35395 (patch)
tree6cea8db7ef1901ebf0923e8dab42efd26513155d /src/init
parent7acf810e81491b08410df1b7bb886bd11b44cd98 (diff)
shared: move the str* implementations to shared/mem.c
Diffstat (limited to 'src/init')
-rw-r--r--src/init/stdlib.c17
-rw-r--r--src/init/stdlib.h2
2 files changed, 0 insertions, 19 deletions
diff --git a/src/init/stdlib.c b/src/init/stdlib.c
index c83440f..18da3da 100644
--- a/src/init/stdlib.c
+++ b/src/init/stdlib.c
@@ -5,23 +5,6 @@
int __tty_fd;
-int strcmp(const char *s1, const char *s2) {
- while (*s1) {
- if (*s1 != *s2) {
- if (*s1 < *s2) return -1;
- else return 1;
- }
- s1++; s2++;
- }
- return 0;
-}
-
-size_t strlen(const char *s) {
- size_t c = 0;
- while (*s++) c++;
- return c;
-}
-
int printf(const char *fmt, ...) {
const char *seg = fmt; // beginning of the current segment
int total = 0;
diff --git a/src/init/stdlib.h b/src/init/stdlib.h
index af0788b..17ec0b9 100644
--- a/src/init/stdlib.h
+++ b/src/init/stdlib.h
@@ -4,6 +4,4 @@
extern int __tty_fd;
-int strcmp(const char *s1, const char *s2);
-size_t strlen(const char *s);
int printf(const char *fmt, ...);