提交 2c536bff 创建 作者: Austin Clements's avatar Austin Clements

Remove memcpy prototypes at Russ' request to prevent code from calling

memcpy directly.
上级 6639ce56
......@@ -124,7 +124,6 @@ void popcli();
// string.c
int memcmp(const void*, const void*, uint);
void* memmove(void*, const void*, uint);
void* memcpy(void*, const void*, uint);
void* memset(void*, int, uint);
char* safestrcpy(char*, const char*, int);
int strlen(const char*);
......
......@@ -44,6 +44,7 @@ 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)
{
......
......@@ -26,7 +26,6 @@ int sleep(int);
int stat(char*, struct stat*);
char* strcpy(char*, char*);
void *memmove(void*, void*, int);
void *memcpy(void*, void*, int);
char* strchr(const char*, char c);
int strcmp(const char*, const char*);
void printf(int, char*, ...);
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论