#include <string.h>
#include "apex_memmove.h"

// To allow usage of LD fct wrapping so we don't need to rename each single memcpy/memmove on the code
// Note: we force the used attribute due gcc discarding runtime functions (think those are not supposed to be LTOed)
// @see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58203
void __attribute__ ((used))   *__wrap_memcpy(void *dst, const void *src, size_t size)
{
    return apex_memcpy(dst, src, size);
}
void __attribute__ ((used))   *__wrap_memmove(void *dst, const void *src, size_t size)
{
    return apex_memmove(dst, src, size);
}

