Given a pointer I want to compare the first two bytes to fixed values.
data
is a void pointer.
Is there a "better" way than this:
unsigned char foo[] = {0xFF, 0x3B};
memcmp(data, foo, 2);
Maybe where I dont have to create a new char array? Thanks!