hi,
i would like to evaluate some value in C.
ex
#define OK 1
int main()
{
char *ptr;
ptr=(char *)fun();
if(*ptr)
printf("SUCCESS");
}
here fun() returns char * and stored in ptr. i would like to check weather ptr is OK or not, i do't like to use strcmp() since, i would like do strcmp() for 100 message. But i would like to check weather its in #define or not. how to do? please help me.