更新时间:2022-05-17 22:18:33
的第三个参数的memcpy
的量在字符的复制的(即字节在大多数平台)。所以,你需要做的是这样的:
The third argument to memcpy
is the amount to copy in characters (i.e. bytes on most platforms). So you need to do something like:
memcpy(CC, CQueue[i], halfSize*sizeof(*CC));