src/util/user.c
/**
 * user_registry_deinit() - destroy user registry
 * @registry:           user registry to operate on
 *
 * This destroys a user registry, previously initialized via
 * user_registry_init(). All user elements instantiated from the registry must
 * have been destroyed before the registry is deinitialized.
 */


This destroys a user registry, previously initialized via
user_registry_init(). All user elements instantiated from the registry must
have been destroyed before the registry is deinitialized.
This destroys a user registry previously initialized via user_registry_init () . All user elements instantiated from the registry must have been destroyed before the registry is deinitialized .
void user_registry_deinit(UserRegistry *registry) {
        c_assert(c_rbtree_is_empty(&registry->user_tree));
        free(registry->maxima);
        *registry = (UserRegistry)USER_REGISTRY_NULL;
}
void user_registry_deinit ( UserRegistry * registry ) { c_assert ( c_rbtree_is_empty ( & registry -> user_tree ) ) ; free ( registry -> maxima ) ; * registry = ( UserRegistry ) USER_REGISTRY_NULL ; }
user_registry_deinit() - destroy user registry
 @registry:           user registry to operate on
user_registry_deinit () - destroy user registry @registry : user registry to operate on