Libft
Custom implementation of core libc functions with additional utility helpers.
Loading...
Searching...
No Matches
s_key_value Struct Reference

Key/value pair stored inside a hashmap bucket. More...

#include <libft.h>

Data Fields

char * key
 Heap-allocated copy of the key string (owned by the pair).
 
void * value
 Pointer to the stored value (owned by the pair).
 

Detailed Description

Key/value pair stored inside a hashmap bucket.

A pair owns a private copy of its key (duplicated on creation) and takes ownership of the value pointer it is given. Both are released when the pair is destroyed (the value through the map's del callback).

Field Documentation

◆ key

char* s_key_value::key

Heap-allocated copy of the key string (owned by the pair).

◆ value

void* s_key_value::value

Pointer to the stored value (owned by the pair).


The documentation for this struct was generated from the following file: