diff options
author | Sverker Eriksson <[email protected]> | 2018-03-07 19:14:25 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2018-03-07 19:14:25 +0100 |
commit | 07444cf881f6e8bca808a04a7eddd2ed1ac74ce6 (patch) | |
tree | 73b32e17b3ec551cda26a2135d5906c7bfd1df13 /erts/doc/src | |
parent | c2a734e7bbf58010507efd60beb594b6b1f0f1d7 (diff) | |
download | otp-07444cf881f6e8bca808a04a7eddd2ed1ac74ce6.tar.gz otp-07444cf881f6e8bca808a04a7eddd2ed1ac74ce6.tar.bz2 otp-07444cf881f6e8bca808a04a7eddd2ed1ac74ce6.zip |
erts: Add enif_fprintf docs
Diffstat (limited to 'erts/doc/src')
-rw-r--r-- | erts/doc/src/erl_nif.xml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/erts/doc/src/erl_nif.xml b/erts/doc/src/erl_nif.xml index f2f380ca4e..9b446615a4 100644 --- a/erts/doc/src/erl_nif.xml +++ b/erts/doc/src/erl_nif.xml @@ -1236,6 +1236,17 @@ typedef struct { </func> <func> + <name><ret>int</ret><nametext>enif_fprintf(FILE *stream, const char *format, ...)</nametext></name> + <fsummary>Format strings and Erlang terms.</fsummary> + <desc> + <p>Similar to <c>fprintf</c> but this format string also accepts + <c>"%T"</c>, which formats Erlang terms.</p> + <p>This function was originally intenden for debugging purpose. It is not + recommended to print very large terms with <c>%T</c>.</p> + </desc> + </func> + + <func> <name><ret>void</ret><nametext>enif_free(void* ptr)</nametext></name> <fsummary>Free dynamic memory.</fsummary> <desc> @@ -3136,6 +3147,8 @@ if (retval & ERL_NIF_SELECT_STOP_CALLED) { <desc> <p>Similar to <c>snprintf</c> but this format string also accepts <c>"%T"</c>, which formats Erlang terms.</p> + <p>This function was originally intenden for debugging purpose. It is not + recommended to print very large terms with <c>%T</c>.</p> </desc> </func> |