-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_memcpy.c
20 lines (18 loc) · 1.01 KB
/
ft_memcpy.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_memcpy.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mfebvay <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2013/11/20 19:15:11 by mfebvay #+# #+# */
/* Updated: 2015/01/22 04:33:12 by mfebvay ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdlib.h>
void *ft_memcpy(void *dst, const void *src, size_t n)
{
while (n--)
((char*)dst)[n] = ((char*)src)[n];
return (dst);
}