Can someone tell me why the following is not working?
Code:char temp[HOW_MANY_SENSORS] = { [0 ... (HOW_MANY_SENSORS - 1)] = 0xFF};test is an int.Code:test = memcmp((const void *)temp, (const void *)0xFF, 1);
If I change temp to 0xFF I get the expected test = 0 but for the life of me I cannot get temp to work...I've tried &temp, &temp[0] ....in all instances test comes back as a non-zero integer
I've also tried strncmp and get the same type of results??