aboutsummaryrefslogtreecommitdiffstats
path: root/erts/doc/src/erl_nif.xml
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2016-05-13 16:48:10 +0200
committerBjörn-Egil Dahlberg <[email protected]>2016-05-13 16:48:10 +0200
commit4fba4b14c4f9aa03294d8d187fe0dd1202744e82 (patch)
treebfcdef0c8ab9e14c1bf149c0a0f0d6b9c8ce39d3 /erts/doc/src/erl_nif.xml
parent66da26c92043c71740ea628469ad6ada747b89bf (diff)
parent88095fc0adb871671ff9763bd5868d7c0c0ac350 (diff)
downloadotp-4fba4b14c4f9aa03294d8d187fe0dd1202744e82.tar.gz
otp-4fba4b14c4f9aa03294d8d187fe0dd1202744e82.tar.bz2
otp-4fba4b14c4f9aa03294d8d187fe0dd1202744e82.zip
Merge branch 'egil/erts/nif-format_term/OTP-13580'
* egil/erts/nif-format_term/OTP-13580: runtime_tools: Change erts_snprintf to enif_snprintf erts: Document enif_snprintf erts: Add tests for enif_snprintf erts: Add enif_snprintf Conflicts: erts/emulator/beam/erl_nif_api_funcs.h
Diffstat (limited to 'erts/doc/src/erl_nif.xml')
-rw-r--r--erts/doc/src/erl_nif.xml9
1 files changed, 9 insertions, 0 deletions
diff --git a/erts/doc/src/erl_nif.xml b/erts/doc/src/erl_nif.xml
index fefec3eeb6..33a4fee182 100644
--- a/erts/doc/src/erl_nif.xml
+++ b/erts/doc/src/erl_nif.xml
@@ -1763,6 +1763,15 @@ enif_map_iterator_destroy(env, &amp;iter);
<desc><p>Get the byte size of a resource object <c>obj</c> obtained by
<seealso marker="#enif_alloc_resource">enif_alloc_resource</seealso>.</p></desc>
</func>
+
+ <func><name><ret>int</ret><nametext>enif_snprintf(char *str, size_t size, const char *format, ...)</nametext></name>
+ <fsummary>Format strings and Erlang terms</fsummary>
+ <desc>
+ <p>Similar to <c>snprintf</c> but this format string also accepts <c>"%T"</c> which formats Erlang terms.
+ </p>
+ </desc>
+ </func>
+
<func>
<name><ret>void</ret><nametext>enif_system_info(ErlNifSysInfo *sys_info_ptr, size_t size)</nametext></name>
<fsummary>Get information about the Erlang runtime system</fsummary>