It makes a memory copy. It has no problem overwriting everything, if used wrong.
struct t {int a, b;} org = {6, 7}, cpy;
memcpy(&cpy, &org, sizeof(struct t));
cpy.a now has 6 and cpy.b has 7.
5th Feb 2018, 7:23 PM
John Wells
Vous avez souvent des questions comme celle-ci ?
Apprenez de maniĂšre plus efficace, gratuitement :