#include <ccan/asearch/asearch.h>static intcmp(const char*key,char*const*elem){return0;}intmain(int argc,char**argv){const char key[] ="key";#ifdef FAILint**p;#if !HAVE_TYPEOF#error"Unfortunately we don't fail if no typeof."#endif#elsechar**p;#endif
p =asearch(key, argv+1, argc-1, cmp);return p ?0:1;}