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
Per probably got it: does the problem disappear if you pad your buffers with 0x20s at program start....?
that's the point - thank you very much for your fast answers!