|
Traverses the list, calling the callback function 'func' on each list element. Traversal will stop when 'func' returns a non-NULL value, and the routine will return with that value. Otherwise the routine will return NULL. - Parameters:
-
list |
The list to traverse. |
func |
The function to be called with each list element. |
user_data |
A pointer passed on to the function 'func'. |
- Returns :
-
The non-NULL pointer returned by 'func' as soon as it returns one. Otherwise (i.e. 'func' always returns NULL) returns NULL.
- Author:
-
Christian Stimming <stimming@tuhh.de>
|