Yes, guaranteed by the C Standard if the new object can be allocated.
(C99, 7.20.3.4p2) “The realloc function deallocates the old object pointed to by ptr and returns a pointer to a new object that has the size specified by size.”
Yes, guaranteed by the C Standard if the new object can be allocated.
(C99, 7.20.3.4p2) “The realloc function deallocates the old object pointed to by ptr and returns a pointer to a new object that has the size specified by size.”