Using memcmp to test magic numbers