解决:memcpy和memmove之间的区别 [英] resolved: difference between memcpy and memmove
本文介绍了解决:memcpy和memmove之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
$ cat junk27.c
#include< stdio.h>
#include< string.h>
int main(无效)
{
printf(" memcpy和memmove之间的区别是%ld \ n",
(long int)memcpy - (long int)memmove);
返回0;
}
$ make junk27
cc -Wall -ansi -pedantic junk27.c -o junk27
$ ./junk27
memcpy和memmove之间的区别是48
$
现在我们可以把它放在我们身后了。
Mac
-
$ cat junk27.c
#include <stdio.h>
#include <string.h>
int main (void)
{
printf("The difference between memcpy and memmove is %ld\n",
(long int) memcpy - (long int) memmove);
return 0;
}
$ make junk27
cc -Wall -ansi -pedantic junk27.c -o junk27
$ ./junk27
The difference between memcpy and memmove is 48
$
So now we can put that behind us.
Mac
--
推荐答案
make junk27
cc -Wall -ansi -pedantic junk27.c -o junk27
make junk27
cc -Wall -ansi -pedantic junk27.c -o junk27
./ junk27
memcpy和memmove之间的区别是48
./junk27
The difference between memcpy and memmove is 48
所以现在我们可以把它放在我们身后了。
Mac
-
So now we can put that behind us.
Mac
--
这篇关于解决:memcpy和memmove之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文