Objective
Implement a function that compares two null-terminated strings, but never looks at more than the first n bytes.
Steps
$ strncmp("ab", "abc", 2)
0
$ strncmp("ab", "abc", 3)
negative value
Expected files
Allowed functions
None. Write every helper yourself.
Allowed headers
Standard C library
Implements the contract of a function from the standard C library.

Objective
Implement a function that compares two null-terminated strings, but never looks at more than the first n bytes.
Steps
$ strncmp("ab", "abc", 2)
0
$ strncmp("ab", "abc", 3)
negative value
Expected files
Allowed functions
None. Write every helper yourself.
Allowed headers
Standard C library
Implements the contract of a function from the standard C library.

Tests
Run the tests to grade your code