check this method(by follow link) for compare 2 char array [in value of block memory by address]
http://www.cplusplus.com/reference/cstring/memcmp/...