src/rtlib/listdyn.c
/** Adds an element to the list.
 *
 * This function adds a list element to the list. It's up to the
 * caller to allocate the memory required by this element.
 *
 * @param list      Pointer to the list structure.
 * @param elem      Pointer to the element to add to the list.
 */
Adds an element to the list.
This function adds a list element to the list. It's up to the
caller to allocate the memory required by this element.

@param list      Pointer to the list structure.
@param elem      Pointer to the element to add to the list.
Adds an element to the list . This function adds a list element to the list . It ' s up to the caller to allocate the memory required by this element . @param list Pointer to the list structure . @param elem Pointer to the element to add to the list .
void fb_hListDynElemAdd( FB_LIST *list, FB_LISTELEM *elem )
{
	if( list->tail != NULL )
		list->tail->next = elem;
	else
		list->head = elem;
	elem->prev = list->tail;
	elem->next = NULL;
	list->tail = elem;
    ++list->cnt;
}
void fb_hListDynElemAdd ( FB_LIST * list , FB_LISTELEM * elem ) { if ( list -> tail != NULL ) list -> tail -> next = elem ; else list -> head = elem ; elem -> prev = list -> tail ; elem -> next = NULL ; list -> tail = elem ; ++ list -> cnt ; }
Adds an element to the list.
Adds an element to the list .