This compares a char pointer to another char pointer.
A char pointer is a single value, usually 4 (or 8) bytes. The value it holds is the memory address is points to. So this if(what == ever)
is testing if the two char pointers both point to the same memory. They do not both point to the same memory.
If you want to test to see if the memory these pointers point to contains identical data (which is probably what you're trying to do) you'll have to dereference the pointers and check the values.
Alternatively, we have a function to do this for us because it's a pain to write it: strcmp.