Aha! memmove I have found you!


#include <string.h>

void *
memmove(void *dst, const void *src, size_t len);

This is like memcpy but the ranges can overlap.
I was using memcpy to a tmp array and then
memcpy back to the original.

:)

#c #memmove