src/layout_set.c
/*!
 * Iterates over the layout_set list until the specified index.
 * @param set the root node to iterate from.
 * @index the amount of iterations.
 * @return the last node iterated.
 * @see layout_set_ensure_next
 */
Iterates over the layout_set list until the specified index.
@param set the root node to iterate from.
@index the amount of iterations.
@return the last node iterated.
Iterates over the layout_set list until the specified index . @param set the root node to iterate from . @index the amount of iterations . @return the last node iterated .
static struct layout_set *layout_set_iterate_to(struct layout_set *set,
		size_t index)
{
	for (size_t i = 0; i < index; ++i) {
		layout_set_ensure_next(set);
		set = set->list_next;
	}
	return set;
}
static struct layout_set * layout_set_iterate_to ( struct layout_set * set , size_t index ) { for ( size_t i = 0 ; i < index ; ++ i ) { layout_set_ensure_next ( set ) ; set = set -> list_next ; } return set ; }
Iterates over the layout_set list until the specified index.
Iterates over the layout_set list until the specified index .