I am trying to write a funtion that will return the value of 1 if its string argument is a palindrome.
I have started but am unsure if it is correct. Could someone please take a look and point me in the right direction?
Thanks
#include <string.h>
Int palindrome (const char *s)
{
int I, l;
l = strlen (s);
for (i=0; i<1/2; i++)
{
If (s[i] != s[l-i-1]) return 0;
}
Return 1;
}