
Implement gm_strlen, your own strlen, which counts characters in a string up to but not including the null terminator.
gm_strlen("")Expected result
0For your own tracking. Tests grade your code.
gm_strlen("docker said not today")Expected result
21Expected files
strlen.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_strlen, your own strlen, which counts characters in a string up to but not including the null terminator.
gm_strlen("")Expected result
0For your own tracking. Tests grade your code.
gm_strlen("docker said not today")Expected result
21Expected files
strlen.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.