Updated: April 19, 2023 |
Get the next member in a group
#include <pips/publication.h>
pips_group_member_t* pips_group_next_member(pips_group_t *const group_hdl, pips_group_member_t *const current)
This function can be used to iterate over the members of a group. The first invocation should be given the NULL pointer as the current argument; in this case, the first element of the group will be returned. Subsequent invocations can be given the handle of the member last returned by this function; the next member will then be returned.
This function can accommodate members being added to or removed from the group between calls.
On success, a handle to the next member in the group. If there are no more members or an error occurred, the function returns NULL and sets errno.