aboutsummaryrefslogtreecommitdiffstats
path: root/src/string
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-09-03 17:11:59 +0200
committerMattias Andrée <maandree@operamail.com>2015-09-03 17:11:59 +0200
commita18b1c30dc6ffb2b726d70e901057909e5815d1f (patch)
treebb7724fdb376a9354498218b46c19bc067bd8d8c /src/string
parentadd printf functions, not fully implemented (diff)
downloadslibc-a18b1c30dc6ffb2b726d70e901057909e5815d1f.tar.gz
slibc-a18b1c30dc6ffb2b726d70e901057909e5815d1f.tar.bz2
slibc-a18b1c30dc6ffb2b726d70e901057909e5815d1f.tar.xz
remove some todos
Signed-off-by: Mattias Andrée <maandree@operamail.com>
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);