Palindrome in C

Palindrome:
String has to store on one variable and another string will be store on another variable which reversed after the each character of original string.
Now Check both string if it is same then print as palindrome else print as not a palindrome

#include <stdio.h>
#include <string.h>
 
int main()
{
   char a[100], b[100];
 
   printf("Enter the string to check if it is a palindrome\n");
   gets(a);
 
   strcpy(b,a);
   strrev(b);
 
   if( strcmp(a,b) == 0 )
      printf("Entered string is a palindrome.\n");
   else
      printf("Entered string is not a palindrome.\n");
 
   return 0;
}