aboutsummaryrefslogtreecommitdiffstats
path: root/src
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
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')
-rw-r--r--src/malloc.c1
-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
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);