#include<stdio.h> #include<stdlib.h> #include<string.h> #define char_len 16 int huiwen(char str[]) { int str_len=strlen(str); int yushu=str_len%2; int mid_left,mid_right; if(yushu==1) mid_left=mid_right=str_len/2; else { mid_left=str_len/2-1; mid_right=str_len/2; } int i; char *p_left; char *p_right; if(yushu==1) { p_left=str+mid_left-1; p_right=str+mid_right+1; } else { p_left=str+mid_left; p_right=str+mid_right; } while(p_left>=str&&p_right<=str+str_len-1) { if(*p_left==*p_right) { --p_left; ++p_right; } else return -1; } return 1; } int remove_char(char str[],int str_len,int index_remove,char dst_str[]) { int i=0,j; for(i=0,j=0;j<str_len;i++,j++) { if(i==index_remove) { j+=1; } dst_str[i]=str[j]; } dst_str[i]='