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

Functions

bool is_matching_key (t_key_value *pair, const char *key)
 Tests whether a pair's key equals the given key.
 

Function Documentation

◆ is_matching_key()

bool is_matching_key ( t_key_value pair,
const char *  key 
)

Tests whether a pair's key equals the given key.

Warning
pair and pair->key must not be NULL.
Parameters
pairPair whose key is compared (borrowed).
keyNUL-terminated key to compare against (borrowed).
Returns
true if the keys are equal, false otherwise.
Here is the call graph for this function:
Here is the caller graph for this function: