r6:Function:freelist 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

/src/freelist/freelist_get_and_set.c
/inc/liblfds.h

Prototype

void *freelist_get_user_data_from_element( struct freelist_element *fe, void **user_data );

Parameters

struct freelist_element *fe

A pointer to a freelist element as obtained by freelist_pop or freelist_guaranteed_pop.

void **user_data

A pointer to a pointer which will be set to hold the user data void pointer. This value can be NULL as the function also returns the void pointer of user data.

Return Value

Returns the user data void pointer from the freelist element.

Notes

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

See Also