invalid maps
This commit is contained in:
23
Oglibft/libft/srcs/ft_memcpy.c
Normal file
23
Oglibft/libft/srcs/ft_memcpy.c
Normal file
@@ -0,0 +1,23 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_memcpy.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: tmaze <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2018/04/06 11:05:36 by tmaze #+# #+# */
|
||||
/* Updated: 2018/04/06 11:09:57 by tmaze ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "libft.h"
|
||||
|
||||
void *ft_memcpy(void *dest, const void *src, size_t n)
|
||||
{
|
||||
size_t i;
|
||||
|
||||
i = 0;
|
||||
while (++i <= n)
|
||||
((char*)dest)[i - 1] = ((char*)src)[i - 1];
|
||||
return (dest);
|
||||
}
|
Reference in New Issue
Block a user