MCPcopy Create free account
hub / github.com/KaisenAmin/c_std / __array_find_if_impl

Function __array_find_if_impl

array/array.h:258–266  ·  view source on GitHub ↗

* @brief Internal implementation of array_find_if. */

Source from the content-addressed store, hash-verified

256
257
258/**
259 * @brief Finds an element in the array using the provided comparator.
260 */
261#define array_find(arr, key, cmp) \
262 arrayp_find_impl((arr).data, array_size(arr), sizeof((arr).data[0]), (key), (cmp))
263
264
265/**
266 * @brief Internal implementation of array_find_if.
267 */
268static inline void *arrayp_find_if_impl(const void *data, size_t count, size_t elem_size,
269 bool (*predicate)(const void*)) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected