diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/malloc.c | 1 | ||||
-rw-r--r-- | src/string/memcpy.c | 1 | ||||
-rw-r--r-- | src/string/memmove.c | 1 | ||||
-rw-r--r-- | src/string/memset.c | 1 | ||||
-rw-r--r-- | src/string/strlen.c | 1 |
5 files changed, 0 insertions, 5 deletions
diff --git a/src/malloc.c b/src/malloc.c index e09cc85..7789070 100644 --- a/src/malloc.c +++ b/src/malloc.c @@ -40,7 +40,6 @@ */ void* malloc(size_t size) { - /* TODO implement implementation of malloc */ char* ptr; size_t full_size; diff --git a/src/string/memcpy.c b/src/string/memcpy.c index 02479cd..54482fb 100644 --- a/src/string/memcpy.c +++ b/src/string/memcpy.c @@ -32,7 +32,6 @@ */ void* memcpy(void* restrict whither, const void* restrict whence, size_t size) { - /* TODO improve implementation of memcpy */ char* d = whither; char* s = whence; while (size--) diff --git a/src/string/memmove.c b/src/string/memmove.c index c721609..0acc47b 100644 --- a/src/string/memmove.c +++ b/src/string/memmove.c @@ -29,7 +29,6 @@ */ void* memmove(void* whither, const void* whence, size_t size) { - /* TODO improve implementation of memcpy */ char* d = whither; const char* s = whence; if ((size_t)(d - s) < size) diff --git a/src/string/memset.c b/src/string/memset.c index f8c153a..df36052 100644 --- a/src/string/memset.c +++ b/src/string/memset.c @@ -29,7 +29,6 @@ */ void* memset(void* segment, int c, size_t size) { - /* TODO improve implementation of memset */ char* s = segment; while (size--) *s++ = (char)c; diff --git a/src/string/strlen.c b/src/string/strlen.c index a7aece5..449fff0 100644 --- a/src/string/strlen.c +++ b/src/string/strlen.c @@ -31,7 +31,6 @@ */ size_t strlen(const char* str) { - /* TODO optimise strlen */ char* s = str; while (*str++); return (size_t)(s - 1 - str); |