#include <stdio.h>
#include <string.h>
int main ()
{
char str[] = "memmove can be very useful......";
//memmove (str+20,str+15,11);
memcpy(str
+20,str
+15,11); //Simply used memcpy instead of memmove return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdHJpbmcuaD4KCmludCBtYWluICgpCnsKICBjaGFyIHN0cltdID0gIm1lbW1vdmUgY2FuIGJlIHZlcnkgdXNlZnVsLi4uLi4uIjsKICAvL21lbW1vdmUgKHN0cisyMCxzdHIrMTUsMTEpOwogIG1lbWNweShzdHIrMjAsc3RyKzE1LDExKTsgIC8vU2ltcGx5IHVzZWQgbWVtY3B5IGluc3RlYWQgb2YgbWVtbW92ZQogIHB1dHMgKHN0cik7CiAgcmV0dXJuIDA7Cn0=