lib: add gun c version memcpy