
Implement gm_memchr, your own memchr, which scans the first n bytes of a memory area for a given byte and returns a pointer to the first match, or NULL if it is absent.
byte index of gm_memchr("docker", 'r', 6)5gm_memchr("zsh prompt", 'X', 10)nullmemchr.c<stddef.h>defines size_tStandard C library
Implements the contract of a function from the standard C library.

Run the tests to grade your code
Implement gm_memchr, your own memchr, which scans the first n bytes of a memory area for a given byte and returns a pointer to the first match, or NULL if it is absent.
byte index of gm_memchr("docker", 'r', 6)5gm_memchr("zsh prompt", 'X', 10)nullmemchr.c<stddef.h>defines size_tStandard C library
Implements the contract of a function from the standard C library.

Run the tests to grade your code
Memory will appear here