memcmp() ported