summaryrefslogtreecommitdiff
path: root/kernel/string.c
blob: 36109096efff625ea370d07d26296e2264769ed2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <kernel/string.h>

int memcmp(const void *str1, const void *str2, size_t n) {
        return 0;
}

void* memcpy(void* __restrict dest, const void* __restrict src, size_t n) {
        return NULL;
}

void* memmove(void* __restrict dest, const void* __restrict src, size_t n) {
        return NULL;
}

void* memset(void *str, int c, size_t n) {
        return NULL;
}

size_t strlen(const char *str) {
        size_t i = 0;
        while (str[i] != '\0')
                i++;
        return i;
}