Don't try calling lsl when file is missing.
[splint-patched.git] / test / manual / palindrome.c
blob77100139a13f6073b1727fe8f9feea5f5a5cb462
1 # include "bool.h"
2 # include "mstring.h"
4 bool isPalindrome (mstring s)
5 {
6 char *current = (char *) s;
7 int i, len = (int) strlen (s);
9 for (i = 0; i <= (len+1)/2; i++)
11 if (current[i] != s[len-i-1])
12 return FALSE;
14 return TRUE;
17 bool callPal (void)
19 return (isPalindrome ("bob"));