Let\'s say I have a char *example that contains 20 chars. I want to remove every char from example[5] to example[10] and then fix up the a
char *example
example[5]
example[10]
memmove(&example[5], &example[11], strlen(example) - 11 + 1);
Note that the behavior of memcpy is undefined when the memory blocks overlap, so memmove is more appropriate here.
memcpy
memmove