tgrekov-pipex
HIVE pipex May 2024
Loading...
Searching...
No Matches
arr_has.c File Reference

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* arr_has.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/22 06:40:50 by tgrekov #+# #+# */
/* Updated: 2024/05/06 14:16:47 by tgrekov ### ########.fr */
/* */
/* ************************************************************************** */

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.
 

Function Documentation

◆ arr_has()

int arr_has ( void **  arr,
void *  content,
int(*)(void *, void *)  compare 
)

Check null-terminated array arr for entry content using comparison function compare.

Parameters
arrArray to check
contentContent to compare against
compareFunction that compares two void *, returning 0 if they match
Return values
int1 if the content was found, otherwise 0

Definition at line 30 of file arr_has.c.

References compare().

Here is the call graph for this function:
Here is the caller graph for this function: