ft_memcpy
Subject
Understandable explanation
The memcpy
function copies maximum n bytes from src
to dst
. The man talks about memory overlapping, I'll explain this with details on the memmove
function page.
As for memset
and bzero
we'll need some temporary pointers to manipulate our data.
This functions works like the strcpy
function, except that memcpy
accepts void *
as parameters, so we can give it any type of pointer we want to copy.
Hints
ft_memcpy.c
Commented solution
Last updated