-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_memmove.c
22 lines (19 loc) · 1.04 KB
/
ft_memmove.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_memmove.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mle-roy <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2013/11/22 16:43:39 by mle-roy #+# #+# */
/* Updated: 2013/11/25 17:20:25 by mle-roy ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void *ft_memmove(void *s1, const void *s2, size_t n)
{
unsigned char new_s[n];
ft_memcpy(new_s, s2, n);
ft_memcpy(s1, new_s, n);
return (char*)(s1);
}