From 8c8663f32f0e9fc2b9483e2b99cee5f703640e88 Mon Sep 17 00:00:00 2001
From: Tuncer Ayaz
Date: Fri, 7 May 2010 18:12:05 +0200
Subject: erl_nif: add enif_get_atom_length and enif_get_list_length
Add new NIF API functions
- enif_get_atom_length
- enif_get_list_length
Signed-off-by: Tuncer Ayaz
---
erts/doc/src/erl_nif.xml | 11 +++++++++++
1 file changed, 11 insertions(+)
(limited to 'erts/doc/src')
diff --git a/erts/doc/src/erl_nif.xml b/erts/doc/src/erl_nif.xml
index dda6354c61..dc68eb5e5e 100644
--- a/erts/doc/src/erl_nif.xml
+++ b/erts/doc/src/erl_nif.xml
@@ -477,6 +477,12 @@ typedef enum {
term is not an atom with maximum length of
size-1.
+ intenif_get_atom_length(ErlNifEnv* env, ERL_NIF_TERM term, unsigned* len)
+ Get the length of atom term.
+ Set *len to the length (number of bytes excluding
+ terminating null character) of term or return false if
+ term is not an atom.
+
intenif_get_double(ErlNifEnv* env, ERL_NIF_TERM term, double* dp)
Read a floating-point number term.
Set *dp to the floating point value of
@@ -494,6 +500,11 @@ typedef enum {
list or return false if list is not a non-empty
list.
+ intenif_get_list_length(ErlNifEnv* env, ERL_NIF_TERM term, unsigned* len)
+ Get the length of list term.
+ Set *len to the length of term or return
+ false if term is not a list.
+
intenif_get_long(ErlNifEnv* env, ERL_NIF_TERM term, long int* ip)
Read an long integer term.
Set *ip to the long integer value of
--
cgit v1.2.3