Difference between pages "r6:Function:slist delete element" and "r6:Function:slist get head"
(Difference between pages)
Jump to navigation
Jump to search
m (1 revision imported) |
m (1 revision imported) |
||
Line 1: | Line 1: | ||
==Source Files== | ==Source Files== | ||
/src/slist/ | /src/slist/slist_get_and_set.c | ||
/inc/liblfds.h | /inc/liblfds.h | ||
==Prototype== | ==Prototype== | ||
struct slist_element *slist_get_head( struct slist_state *ss, struct slist_element **se ); | |||
==Parameters== | ==Parameters== | ||
Line 10: | Line 10: | ||
: An slist state as allocated by ''[[r6:Function:slist_new|slist_new]]''. | : An slist state as allocated by ''[[r6:Function:slist_new|slist_new]]''. | ||
''struct slist_element *se'' | ''struct slist_element **se'' | ||
: A pointer to | : A pointer to a pointer into which the slist element will be placed. Set to NULL if there are no elements. | ||
==Return Value== | ==Return Value== | ||
Returns a pointer to the current head element. Returns NULL if there are no elements. | |||
==Notes== | ==Notes== | ||
No notes. | |||
==See Also== | ==See Also== | ||
* [[r6:API:SList|SList]] | * [[r6:API:SList|SList]] | ||
* [[r6:Function: | * [[r6:Function:slist_get_next|slist_get_next]] | ||
* [[r6:Function: | * [[r6:Function:slist_get_head_and_then_next|slist_get_head_and_then_next]] |
Latest revision as of 14:07, 4 January 2015
Source Files
/src/slist/slist_get_and_set.c /inc/liblfds.h
Prototype
struct slist_element *slist_get_head( struct slist_state *ss, struct slist_element **se );
Parameters
struct slist_state *ss
- An slist state as allocated by slist_new.
struct slist_element **se
- A pointer to a pointer into which the slist element will be placed. Set to NULL if there are no elements.
Return Value
Returns a pointer to the current head element. Returns NULL if there are no elements.
Notes
No notes.