summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'string.c')
-rw-r--r--string.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/string.c b/string.c
index cb890ee..a557dc5 100644
--- a/string.c
+++ b/string.c
@@ -44,6 +44,13 @@ memmove(void *dst, const void *src, uint n)
return dst;
}
+// memcpy exists to placate GCC. Use memmove.
+void*
+memcpy(void *dst, const void *src, uint n)
+{
+ return memmove(dst, src, n);
+}
+
int
strncmp(const char *p, const char *q, uint n)
{