40.1.2.7 is_list_element
Check whether an element belongs to a list.
bool is_list_element(
const struct list_descriptor *const list,
const void *const element
)
Parameters
- list
-
Type: const struct list_descriptor Struct *const
The pointer to a list
- element
-
Type: const void *const
An element to check
Returns
Type: bool
The result of checking
- true
-
If the given element is an element of the given list
- false
-
Otherwise