r6.1.1:lfds611_slist_set_user_data_in_element
Jump to navigation
Jump to search
Source Files
/liblfds611/src/lfds611_slist/lfds611_slist_get_and_set.c /liblfds611/inc/liblfds611.h
Prototype
int lfds611_slist_set_user_data_in_element( struct lfds611_slist_element *se, void *user_data );
Parameters
struct lfds611_slist_element *se
- A pointer to an slist element as allocated by lfds611_slist_new_head or lfds611_slist_new_next.
void *user_data
- A void pointer of user data which will be placed into the slist element.
Return Value
Returns 1 on success, 0 on failure. The only cause of failure is if you try to set the user data in an element which has been logically deleted.
Notes
This function sets the user data void pointer in the slist element.