diff options
| author | EmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com> | 2024-07-18 22:25:44 -0400 |
|---|---|---|
| committer | EmulatedSeasons <89668582+EmulatedSeasons@users.noreply.github.com> | 2024-09-03 14:07:04 -0400 |
| commit | 8eda325ede02d3fc606a34f7fa3c4922b05a84e4 (patch) | |
| tree | 881da3ba217871a002e6e79bdfc90149cc589e1d /libc/memmove.c | |
| parent | 82bcab74e6e0c581dcf4ac4d7997aec5c5e14aae (diff) | |
Remerged the std stuff into the kernel
Diffstat (limited to 'libc/memmove.c')
| -rw-r--r-- | libc/memmove.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/libc/memmove.c b/libc/memmove.c deleted file mode 100644 index 98c787f..0000000 --- a/libc/memmove.c +++ /dev/null @@ -1,14 +0,0 @@ -#include <string.h>
-
-void* memmove(void* dstptr, const void* srcptr, size_t size) {
- unsigned char* dst = (unsigned char*) dstptr;
- const unsigned char* src = (const unsigned char*) srcptr;
- if (dst < src) {
- for (size_t i = 0; i < size; i++)
- dst[i] = src[i];
- } else {
- for (size_t i = size; i != 0; i--)
- dst[i-1] = src[i-1];
- }
- return dstptr;
-}
\ No newline at end of file |
