Objective
Implement a function that searches a string for the first occurrence of a substring and returns a pointer to where it begins.
Steps
$ strstr("git rebase main", "rebase")
rebase main
$ strstr("merge conflict", "xyz")
(null)
$ strstr("commit", "")
commit
$ strstr("aaab", "aab")
aab
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 searches a string for the first occurrence of a substring and returns a pointer to where it begins.
Steps
$ strstr("git rebase main", "rebase")
rebase main
$ strstr("merge conflict", "xyz")
(null)
$ strstr("commit", "")
commit
$ strstr("aaab", "aab")
aab
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