Revision 301
changed shooters
list.c | ||
---|---|---|
77 | 77 |
void (list_pop_front)(list_t *l){ |
78 | 78 |
list_erase(l, list_begin(l)); |
79 | 79 |
} |
80 |
list_node_t* (list_find)(list_t *l, void *val){ |
|
81 |
list_node_t *it = list_begin(l); |
|
82 |
while(it != list_end(l) && *list_node_val(it) != val){ |
|
83 |
it = list_node_next(it); |
|
84 |
} |
|
85 |
return it; |
|
86 |
} |
Also available in: Unified diff