
Implement gm_memcpy, your own memcpy, which copies exactly n bytes from a source buffer to a destination buffer and returns the destination pointer.
gm_memcpy(dst, "git push", 9)Expected result
git pushFor your own tracking. Tests grade your code.
gm_memcpy(dst, "rebase --hard", 4); dst[4] = '\0';Expected result
rebaExpected files
memcpy.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_memcpy, your own memcpy, which copies exactly n bytes from a source buffer to a destination buffer and returns the destination pointer.
gm_memcpy(dst, "git push", 9)Expected result
git pushFor your own tracking. Tests grade your code.
gm_memcpy(dst, "rebase --hard", 4); dst[4] = '\0';Expected result
rebaExpected files
memcpy.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.