summaryrefslogtreecommitdiff
path: root/src/init/stdlib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/init/stdlib.c')
-rw-r--r--src/init/stdlib.c17
1 files changed, 0 insertions, 17 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;