1 2 3 4 5
#include <mem.h> static char const buf[] = "test"; int main(void) { return calt_memchr(buf, 't', sizeof buf) == &buf[0] ? 0 : 1; }