Hi, im passing a pointer containing a string to a function im then using
int isNumberString(char *pNumberStringPtr)
{
if(strcmp( *pNumberStringPtr, "ONE" ) != 0 )
{
return 0
}
else if (strcmp( *pNumberStringPtr, "ONE" ) = 0 )
{
return 1;
}
}
this is a cut down version
it come sup with this error
error C2664: 'strcmp' : cannot convert parameter 1 from 'char' to 'const char *'
why is that, i dont understand
any help would be really appreciated