From 6639ce56d986cdae197e4f013dde536178ad23f8 Mon Sep 17 00:00:00 2001 From: Austin Clements Date: Wed, 7 Oct 2009 12:05:56 -0400 Subject: Provide memcpy for compatibility with older versions of gcc --- string.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'string.c') diff --git a/string.c b/string.c index cb890ee..b356895 100644 --- a/string.c +++ b/string.c @@ -44,6 +44,12 @@ memmove(void *dst, const void *src, uint n) return dst; } +void* +memcpy(void *dst, const void *src, uint n) +{ + return memmove(dst, src, n); +} + int strncmp(const char *p, const char *q, uint n) { -- cgit v1.2.3