Your stuff is pretty weird. Doesn't make a lot of sense.
Code:
char * Compare(char *searchCmd)
{
searchCmd = '\xA1'; // (char *) = (char); This looks highly suspicious
// I would like to know what's the value of currentPlace here, and would be curious to know his type
// Also, your loop might read in memory who doesn't belong to your program
while (memcmp(currentPlace, searchCmd, 1) != 0)
currentPlace++;
// Your function should return a (char *). Currently, it returns nothings.
}
What are you trying to do ?