char **ei_global_names(
ec,
fd,
count) OTP 23.0
ec,
fd,
count)
Retrieves a list of all known global names.
-
ecis theei_cnoderepresenting the current cnode. -
fdis an open descriptor to an Erlang connection. -
countis the address of an integer, orNULL. Ifcountis 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.