I get an access violation when I use memcmp... not too sure what that means, but heres the error:

Unhandled exception at 0x1024002d in myprogram.exe: 0xC0000005: Access violation reading location 0xffffffcc.
Code:
char * Compare(char *searchCmd)
{
	searchCmd = '\xA1';
	while (memcmp(currentPlace, searchCmd, 1) != 0)
		currentPlace++;
}