The nn_reallocmsg()
reallocates the message old, making it of size size.
Note
|
This function is provided for API compatibility with legacy libnanomsg. Consider using the relevant modern API instead. |
On success, the contents of old are copied into the new message (truncating if appropriate), then old is deallocated, and a pointer to the new message payload is returned.
On failure, the old message is unchanged, and the value NULL
is returned
to the caller.
ENOMEM
|
Insufficient memory is available. |
EINVAL
|
An invalid size was specified. |
ETERM
|
The library is shutting down. |