Objective
Implement a function that scans a string for the first occurrence of a character and returns a pointer to it.
Steps
$ strchr("rebase main", 'm')
main
$ strchr("git status", 'z')
(null)
$ strchr("commit", '\0')
(no output)
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 scans a string for the first occurrence of a character and returns a pointer to it.
Steps
$ strchr("rebase main", 'm')
main
$ strchr("git status", 'z')
(null)
$ strchr("commit", '\0')
(no output)
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