* @brief Internal implementation of array_find. * * Searches the array for an element equal to the key using the * comparison function. Returns the matching element, or NULL. */
| 234 | memcpy(_temp, (arr1).data, sizeof((arr1).data)); \ |
| 235 | memcpy((arr1).data, (arr2).data, sizeof((arr1).data)); \ |
| 236 | memcpy((arr2).data, _temp, sizeof((arr1).data)); \ |
| 237 | } while (0) |
| 238 | |
| 239 | |
| 240 | /** |
| 241 | * @brief Internal implementation of array_find. |
| 242 | * |
| 243 | * Searches the array for an element equal to the key using the |
| 244 | * comparison function. Returns the matching element, or NULL. |
| 245 | */ |
| 246 | static inline void *arrayp_find_impl(const void *data, size_t count, size_t elem_size, |
| 247 | const void *key, |
| 248 | int (*cmp)(const void *, const void *)) { |
nothing calls this directly
no outgoing calls
no test coverage detected