Skip to content

Commit

Permalink
lone: define memcpy
Browse files Browse the repository at this point in the history
Compilers may emit calls to memcpy even in freestanding nolibc mode.
  • Loading branch information
matheusmoreira committed Nov 19, 2023
1 parent 924c1c3 commit 4863b40
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/lone/memory/functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,9 @@ void *memset(void *to, int byte, size_t count)
lone_memory_set(to, (unsigned char) byte, count);
return to;
}

void *memcpy(void *to, void *from, size_t count)
{
lone_memory_move(from, to, count);
return to;
}

0 comments on commit 4863b40

Please sign in to comment.