r6.0.1:lfds601_slist_new_next
Jump to navigation
Jump to search
Source Files
/liblfds601/src/lfds601_slist/lfds601_slist_new.c /liblfds601/inc/liblfds601.h
Prototype
struct lfds601_slist_element *lfds601_slist_new_next( struct lfds601_slist_element *se, void *user_data );
Parameters
struct lfds601_slist_element *se
- An slist element as allocated by lfds601_slist_new_head or lfds601_slist_new_next.
void *user_data
- A void pointer of user data which will be placed into the list immediately after lfds601_slist_element.
Return Value
Returns a pointer to the new slist element. If element creation failed, which can only happen because of memory allocation failure, the return value is NULL.
Notes
This function creates a new slist element holding user_data and links it into the slist immediately after element se.