From 1b825b063da65fe3d88c1ca97afded0d6f6ccc14 Mon Sep 17 00:00:00 2001
From: Garrett D'Amore <garrett@damore.org>
Date: Fri, 5 Apr 2024 08:40:25 -0700
Subject: Compat pages converted.

---
 docs/ref/compat/nn_reallocmsg.adoc | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 docs/ref/compat/nn_reallocmsg.adoc

(limited to 'docs/ref/compat/nn_reallocmsg.adoc')

diff --git a/docs/ref/compat/nn_reallocmsg.adoc b/docs/ref/compat/nn_reallocmsg.adoc
new file mode 100644
index 00000000..7a1cb0ad
--- /dev/null
+++ b/docs/ref/compat/nn_reallocmsg.adoc
@@ -0,0 +1,36 @@
+## nn_reallocmsg
+
+Reallocate message (compatible API).
+
+### Synopsis
+
+```c
+#include <nanomsg/nn.h>
+
+void *nn_reallocmsg(void *old, size_t size);
+```
+
+### Description
+
+The `nn_reallocmsg` reallocates the message _old_, making it of size _size_.
+
+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 returnedto the caller.
+
+### Return Values
+
+This function returns a pointer to message buffer space, or `NULL` on failure.
+
+### Errors
+
+[horizontal]
+`ENOMEM`:: Insufficient memory is available.
+`EINVAL`:: An invalid _size_ was specified.
+`ETERM`:: The library is shutting down.
+
+### See Also
+
+xref:nn_allocmsg.adoc[nn_allocmsg],
+xref:nn_freemsg.adoc[nn_freemsg],
+xref:nn_errno.adoc[nn_errno]
-- 
cgit v1.2.3-70-g09d2

