/* palindrome.c * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * wrote this file. As long as you retain this notice * you can do whatever you want with this stuff. If we meet some day, and you * think this stuff is worth it, you can buy me a beer in return. * Benjamin Chausse * ---------------------------------------------------------------------------- */ #include #include "format.h" #include "testData.h" int palindrome(char *s){ int len = 0; while (s[len]!= '\0'){ len ++; } int j = len; for (int i=0; i