
Implement gm_memmove, your own memmove, which copies n bytes from src to dst and returns dst, producing the correct result even when the two regions overlap.
gm_memmove(buf, "git rebase", 11)Expected result
git rebase.For your own tracking. Tests grade your code.
gm_memmove(buf + 2, buf, 5) // buf = "0123456789"Expected result
0101234789Expected files
memmove.cAllowed functions
None. Write every helper yourself.
Allowed headers
Standard C library
Implements the contract of a function from the standard C library.

v0.40: Create exercises. Challenge the community.
Meet Studio →Implement gm_memmove, your own memmove, which copies n bytes from src to dst and returns dst, producing the correct result even when the two regions overlap.
gm_memmove(buf, "git rebase", 11)Expected result
git rebase.For your own tracking. Tests grade your code.
gm_memmove(buf + 2, buf, 5) // buf = "0123456789"Expected result
0101234789Expected files
memmove.cAllowed functions
None. Write every helper yourself.
Allowed headers
Standard C library
Implements the contract of a function from the standard C library.

Run the tests to grade your code
Build your code, then check each test here. Open a result to inspect its output.