Use memcmp and memcpy
These 2 parts could be replaced by memcpy and memcmp without modifying the behavior. As these functions is in ISO C standard, we can replace without losing compatibility too.
These 2 parts could be replaced by memcpy and memcmp without modifying the behavior. As these functions is in ISO C standard, we can replace without losing compatibility too.