r6.0.0:lfds600_slist_get_user_data_from_element

From liblfds.org
Revision as of 14:07, 4 January 2015 by Admin (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Source Files

/liblfds600/src/lfds600_slist/lfds600_slist_get_and_set.c
/liblfds600/inc/liblfds600.h

Prototype

int lfds600_slist_get_user_data_from_element( struct lfds600_slist_element *se, void **user_data );

Parameters

struct lfds600_slist_element *se

A pointer to an slist element as allocated by lfds600_slist_new_head or lfds600_slist_new_next.

void **user_data

A pointer to a pointer into which the user data will be placed.

Return Value

Returns 1 on success, 0 on failure. The only cause of failure is if you try to get the user data from an element which has been logically deleted.

Notes

This function gets the user data void pointer in the slist element.

See Also