aboutsummaryrefslogtreecommitdiffstats
path: root/erts/doc
diff options
context:
space:
mode:
authorAnthony Ramine <[email protected]>2017-11-21 22:25:41 +0100
committerAnthony Ramine <[email protected]>2017-11-21 22:25:41 +0100
commit3bfbed2e40e1118077d9981c4195c9a94403ed74 (patch)
treee757dfc696d17f49e6e01125513d3533b304edce /erts/doc
parent43c5b9621e4c7054378e9ff96907cca4fd92ecc7 (diff)
downloadotp-3bfbed2e40e1118077d9981c4195c9a94403ed74.tar.gz
otp-3bfbed2e40e1118077d9981c4195c9a94403ed74.tar.bz2
otp-3bfbed2e40e1118077d9981c4195c9a94403ed74.zip
Document enif_realloc
Diffstat (limited to 'erts/doc')
-rw-r--r--erts/doc/src/erl_nif.xml12
1 files changed, 12 insertions, 0 deletions
diff --git a/erts/doc/src/erl_nif.xml b/erts/doc/src/erl_nif.xml
index 419e41693e..88eb6725cb 100644
--- a/erts/doc/src/erl_nif.xml
+++ b/erts/doc/src/erl_nif.xml
@@ -2760,6 +2760,18 @@ enif_map_iterator_destroy(env, &amp;iter);</code>
</func>
<func>
+ <name><ret>void *</ret>
+ <nametext>enif_realloc(void* ptr, size_t size)</nametext></name>
+ <fsummary>Reallocate dynamic memory.</fsummary>
+ <desc>
+ <p>Reallocates memory allocated by
+ <seealso marker="#enif_alloc"><c>enif_alloc</c></seealso> to
+ <c>size</c> bytes.</p>
+ <p>Returns <c>NULL</c> if the reallocation fails.</p>
+ </desc>
+ </func>
+
+ <func>
<name><ret>int</ret>
<nametext>enif_realloc_binary(ErlNifBinary* bin, size_t size)</nametext>
</name>