#include #include #include int main(int argc, char **argv) { char *a, *b; char* str = strdup("foobar"); for (a=str,b=str+strlen(str)-1; a