
Write a function that returns 1 when two byte slices taken from the same array share at least one byte, and 0 when they do not.
ranges_overlap(buf, 6, buf + 4, 6)1ranges_overlap(buf, 4, buf + 4, 4)0ranges_overlap(buf, 0, buf, 8)0ranges_overlap.c<stddef.h>defines size_t
Run the tests to grade your code
Write a function that returns 1 when two byte slices taken from the same array share at least one byte, and 0 when they do not.
ranges_overlap(buf, 6, buf + 4, 6)1ranges_overlap(buf, 4, buf + 4, 4)0ranges_overlap(buf, 0, buf, 8)0ranges_overlap.c<stddef.h>defines size_t
Run the tests to grade your code
Memory will appear here