
Implement gm_strstr, your own strstr, which returns a pointer to the first occurrence of needle inside haystack.
gm_strstr("git rebase main", "rebase")rebase maingm_strstr("merge conflict", "xyz")(null)gm_strstr("commit", "")commitgm_strstr("aaab", "aab")aabstrstr.c<stddef.h>defines NULLStandard C library
Implements the contract of a function from the standard C library.

Run the tests to grade your code
Implement gm_strstr, your own strstr, which returns a pointer to the first occurrence of needle inside haystack.
gm_strstr("git rebase main", "rebase")rebase maingm_strstr("merge conflict", "xyz")(null)gm_strstr("commit", "")commitgm_strstr("aaab", "aab")aabstrstr.c<stddef.h>defines NULLStandard C library
Implements the contract of a function from the standard C library.

Run the tests to grade your code
Memory will appear here