Table of Contents
The function
changes the size of the object pointed to by to the size specified by
The contents of the object are unchanged up to the lesser of the new and
old sizes. If the new size is larger, the value of the newly allocated portion
of the object is indeterminate. If is a null pointer, the function behaves
like the function for the specified size. Otherwise, if does not match
a pointer earlier returned by the or function, or if the space has
been deallocated by a call to the or function, unpredictable and usually
detrimental behavior will occur. If the space cannot be allocated, the object
pointed to by is unchanged. If is zero and is not a null pointer, the
object it points to is freed. The function returns either a null pointer
or a pointer to the possibly moved allocated space.
The
function conforms to
Table of Contents