Checking two arrays for equality.

I think you can use the command memcmp, it is one line command :wink:

See more info at http://www.cplusplus.com/reference/cstring/memcmp/

An example

if (memcmp(codeA, codeB, ArraySize) == 0) { //if it is the same then 
           //do something 
        }