unsigned char signature[3] = {47, 49, 46};
unsigned char sig[3];

if (memcmp(sig, signature, 3) == 0) ...