Objective
Implement a function that compares the first n bytes of two memory blocks and returns an integer whose sign reflects which block is larger.
Steps
$ memcmp("docker", "docker", 6)
0
$ memcmp("git push", "git pull", 8)
positive value
$ memcmp("ab\0cd", "ab\0ce", 5)
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 the first n bytes of two memory blocks and returns an integer whose sign reflects which block is larger.
Steps
$ memcmp("docker", "docker", 6)
0
$ memcmp("git push", "git pull", 8)
positive value
$ memcmp("ab\0cd", "ab\0ce", 5)
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