Adding memmove (for compiler usage).

This commit is contained in:
Ruben Ayrapetyan
2014-08-08 12:42:57 +04:00
parent f76795db8c
commit c688f27f62
+15
View File
@@ -32,6 +32,11 @@ extern void *memcpy(void *s1, const void*s2, size_t n);
*/
extern void *memset(void *s, int c, size_t n);
/**
* memmove alias to __memmove (for compiler usage)
*/
extern void *memmove(void *s1, const void*s2, size_t n);
/**
* memcpy alias to __memcpy (for compiler usage)
*/
@@ -51,6 +56,16 @@ void* memset(void *s, /**< area to set values in */
{
return __memset(s, c, n);
} /* memset */
/**
* memmove alias to __memmove (for compiler usage)
*/
void* memmove(void *s1, /**< destination*/
const void*s2, /**< source */
size_t n) /**< area size */
{
return __memmove(s1, s2, n);
} /* memmove */
#endif /* LIBC_MUSL */
/**