
Write gm_strncat, your own strncat, which appends at most n characters from src onto the end of dst, then terminates the result.
gm_strncat("git ", "rebase --interactive", 6)Expected result
git rebaseFor your own tracking. Tests grade your code.
gm_strncat("docker ", "compose", 64)Expected result
docker composegm_strncat("commit", " --amend", 0)Expected result
commitExpected files
strncat.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 →Write gm_strncat, your own strncat, which appends at most n characters from src onto the end of dst, then terminates the result.
gm_strncat("git ", "rebase --interactive", 6)Expected result
git rebaseFor your own tracking. Tests grade your code.
gm_strncat("docker ", "compose", 64)Expected result
docker composegm_strncat("commit", " --amend", 0)Expected result
commitExpected files
strncat.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.