ec_double_list_apply

March 26, 2020 Contributors

Name

ec_double_list_apply — apply a callback function to each element in the list

Synopsis

#include "misc/ec_double_list.h"

| void **ec_double_list_apply** ( | list, |   |
|   | f, |   |
|   | udata); |   |

ec_double_list * <var class="pdparam">list</var>;
ECListApplyFunc <var class="pdparam">f</var>;
void * <var class="pdparam">udata</var>;

Description

Note

This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.

apply a callback function to each element in the list

Calls f on all elements of the list If f(data) returns non-zero, the element is removed from the list

Parameters

list

the list

f

the callback function

udata

the parameter to pass to the callback function