char **ei_global_names(
ec,
fd,
count)
OTP 23.0
ec,
fd,
count)
Types
Retrieves a list of all known global names.
-
ec
is theei_cnode
representing the current cnode. -
fd
is an open descriptor to an Erlang connection. -
count
is the address of an integer, orNULL
. Ifcount
is notNULL
, it is set by the function to the number of names found.
On success, the function returns an array of strings, each containing a single registered name, and sets count
to the number of names found. The array is terminated by a single NULL
pointer. On failure, the function returns NULL
and count
is not modified.
It is the caller's responsibility to free the array afterwards. It has been allocated by the function with a single call to malloc()
, so a single free()
is all that is necessary.