I having trouble... for some reason strcpy(b,a) is not working... it says b is not identified

#include <stdio.h>
#include "simpio.h"
#include "genlib.h"

int main()
{
	string a, b, c;

	printf("Please enter a word: ");
	a = GetLine();

	b = strcpy(b,a);
	b = strrev(b);

	if(strcmp(a,b)==0)
	{
	printf("\n%s is a palindrome\n",a);
	}
	else
	{
	printf("\n%s is not a palindrome\n",a);
	}

system("Pause");
}

Well that would depend on how "string" is declared in your C program.

Well that would depend on how "string" is declared in your C program.

And how Getline() and strrev() play with the ENTER key, as well.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.