A program that define that it is plaindrome or not

// Write a program that define that it is plaindrome or not

#include<stdio.h>
#include<string.h>
void main()
{
char a[50],b[50];
printf("enter the string for plaindrome:\n");

gets(a);
strcpy(b,a);
strrev(b);
if(strcmp(a,b)==0)
 {
 printf("this is a plaindrome\n");
 }
 else
 {
 printf("this is NOT a plaindrome\n");

 }

 }