Libft
Custom implementation of core libc functions with additional utility helpers.
Loading...
Searching...
No Matches
contains.c File Reference
#include "libft.h"
#include "key_value.h"
Include dependency graph for contains.c:

Functions

bool bucket_contains (t_list bucket, const char *key)
 Tests whether a bucket chain holds a pair with the given key.
 

Function Documentation

◆ bucket_contains()

bool bucket_contains ( t_list  bucket,
const char *  key 
)

Tests whether a bucket chain holds a pair with the given key.

Parameters
bucketHead of the bucket chain to search (borrowed, may be NULL).
keyNUL-terminated key to look for (borrowed).
Returns
true if a matching pair is found, false otherwise.
Here is the call graph for this function:
Here is the caller graph for this function: