Objective
Implement strcspn, which scans a string from the beginning and returns the index of the first character that appears in a given reject set.
Steps
$ strcspn("grep found nothing", "xyz")
18
$ strcspn("branch", "aeiou")
2
$ strcspn("", "abc")
0
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 strcspn, which scans a string from the beginning and returns the index of the first character that appears in a given reject set.
Steps
$ strcspn("grep found nothing", "xyz")
18
$ strcspn("branch", "aeiou")
2
$ strcspn("", "abc")
0
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