dl_find()
#
dl_find()
searches for an item in a doubly linked list and returns a pointer to the item if found.
Prototype
void *dl_find(
dl_list_t *dl,
void *item
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
Pointer to the doubly linked list. |
|
|
Pointer to the item to search for in the list. |
Return Value
Returns a pointer to the item if found, otherwise returns NULL
.
Notes
This function performs a linear search through the list and returns the first matching item.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples