This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

memcmp failed

Hi,

I've a lot of troubles working with the memcmp command. I want to compare two strings, which are equal, but the programm tells me that they are not equal. Both memory locations have the same values.

unsigned char *pdata;
const char *pName;

//do some stuff - e.g. get their values

memcmp((void *)pdata, (void *) pName, strlen((const char *)pName));

best regards
Howard