From f5ae770ffc37845c576ea590b90e92efda998537 Mon Sep 17 00:00:00 2001 From: fslongjin Date: Thu, 6 Oct 2022 21:29:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=80=81memcpy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- user/libs/libc/string.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/user/libs/libc/string.h b/user/libs/libc/string.h index ade86b6c..3ad020f9 100644 --- a/user/libs/libc/string.h +++ b/user/libs/libc/string.h @@ -46,4 +46,6 @@ char* strcpy(char* dst, const char* src); * @param src 源串 * @return char* */ -char *strcat(char *dest, const char *src); \ No newline at end of file +char *strcat(char *dest, const char *src); + +#define memcpy(dst, src, n) __builtin_memcpy(dst, src, n) \ No newline at end of file