X
xdevel
Hi, anyone can make me an example where
memmove does not cause a memory overlapping and
where memcpy do it?
Thanks
memmove does not cause a memory overlapping and
where memcpy do it?
Thanks
xdevel said:Hi, anyone can make me an example where
memmove does not cause a memory overlapping and
where memcpy do it?
Thanks
xdevel said:Reading that forum I see this example:
// here overlap
memmove (example +5 , example, 6);
// Her its ok:
//memcpy (example, example +5, 4);
but in both cases there is an overlap!
in fact my compiler run both and the output is coherent. Also if I
change memmove (example +5 , example, 6) with memcpy
(example +5 , example, 6)!
So I don't' understand what mean in this context the word OVERLAP!
xdevel said:Reading that forum I see this example:
// here overlap
memmove (example +5 , example, 6);
// Her its ok:
//memcpy (example, example +5, 4);
but in both cases there is an overlap! in fact
my compiler run both and the output is coherent. Also if I change
memmove (example +5 , example, 6) with memcpy (example +5 , example,
6)!
So I don't' understand what mean in this context the word OVERLAP!
xdevel said:Hi, anyone can make me an example where
memmove does not cause a memory overlapping and
where memcpy do it?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.