1 #include <ccan/foreach/foreach.h>
2 #include <ccan/foreach/foreach.c>
4 /* Iterating over const pointers should work fine. */
5 int main(int argc, char *argv[])
7 const char *s1 = "hello", *s2 = "world", *p;
10 foreach_ptr(p, s1, s2)
13 return i == 2 ? 0 : 1;