I get this error.
我收到这个错误。
error: warning: incompatible implicit declaration of built-in function ‘memcpy’ [enabled by default]
This is the code:
这是代码:
int arr[ 12] = {1,0,0,0,0,0,0,0,0,0,9370, 0};
void *a = &arr;
memcpy(machine->mem, a,12*4);
What I am doing wrong?
我做错了什么?
1 个解决方案
#1
78
You likely forgot to include <string.h>
.
您可能忘记包含
#1
78
You likely forgot to include <string.h>
.
您可能忘记包含