I need to compare some of the values in an array to see if they are all the same single value, let's say 0xFF. Is there a common function to do this, like memcmp(), or do I have to do it the hard way and check every explicit value, like:
if ( ary[3] == 0xFF && ary[4] == 0xFF && ary[5] == 0xFF && ary[6] == 0xFF ... )
{
// do something
}
I can obviously make my own function to do it like memcmp, but I don't want to reinvent the wheel if I don't have to.