fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. unsigned char msgType[2] = {0x33, 0x36};
  6. unsigned char your_value[2] = {0x33, 0x36};
  7.  
  8. // Make sure your_value is the same size of msgType
  9. if (memcmp (msgType , your_value, sizeof(msgType)/sizeof(unsigned char) ) == 0){
  10. printf("Yes, memory is equal at that address!");
  11. }
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
Yes, memory is equal at that address!