![]() |
tgrekov-pipex
HIVE pipex May 2024
|
Definition in file arr_has.c.
Go to the source code of this file.
Functions | |
| int | arr_has (void **arr, void *content, int(*compare)(void *, void *)) |
Check null-terminated array arr for entry content using comparison function compare. | |
| int arr_has | ( | void ** | arr, |
| void * | content, | ||
| int(*)(void *, void *) | compare | ||
| ) |
Check null-terminated array arr for entry content using comparison function compare.
| arr | Array to check |
| content | Content to compare against |
| compare | Function that compares two void *, returning 0 if they match |
| int | 1 if the content was found, otherwise 0 |
Definition at line 30 of file arr_has.c.
References compare().