Explorar el Código

用户态memcpy

fslongjin hace 2 años
padre
commit
f5ae770ffc
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      user/libs/libc/string.h

+ 3 - 1
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);
+char *strcat(char *dest, const char *src);
+
+#define memcpy(dst, src, n) __builtin_memcpy(dst, src, n)