aboutsummaryrefslogtreecommitdiffstats
path: root/src/string
diff options
context:
space:
mode:
Diffstat (limited to 'src/string')
-rw-r--r--src/string/memcpy.c1
-rw-r--r--src/string/memmove.c1
-rw-r--r--src/string/memset.c1
-rw-r--r--src/string/strlen.c1
4 files changed, 0 insertions, 4 deletions
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);