ft_memmove
Subject
MEMMOVE(3) (simplified)
NAME
memmove -- copy byte string
SYNOPSIS
void *memmove(void *dst, const void *src, size_t len);
DESCRIPTION
The memmove() function copies len bytes from string src to string dst.
The two strings may overlap; the copy is always done in a non-destructive manner.
RETURN VALUES
The memmove() function returns the original value of dst.Understandable explanation
What is memory overlapping ?
+++++++++++++++++++++++++++++++ | 'a' | 'b' | 'c' | 'd' | 'e' | +++++++++++++++++++++++++++++++ 0x100 0x101 0x102 0x103 0x104+++++++++++++++++++++++++++++++ | 'a' | 'b' | 'a' | 'b' | 'a' | +++++++++++++++++++++++++++++++ 0x100 0x101 0x102 0x103 0x104+++++++++++++++++++++++++++++++ | 'a' | 'b' | 'a' | 'b' | 'c' | +++++++++++++++++++++++++++++++ 0x100 0x101 0x102 0x103 0x104
Hints
Commented solution
Last updated