|
Libft
Custom implementation of core libc functions with additional utility helpers.
|

Functions | |
| bool | hashmap_insert (t_hashmap *map, t_key_value *new) |
| Inserts a pair into the map, or replaces an existing one. | |
| bool hashmap_insert | ( | t_hashmap * | map, |
| t_key_value * | new | ||
| ) |
Inserts a pair into the map, or replaces an existing one.
Appends new to its target bucket chain. If a pair with the same key already exists in that bucket, its value is released through the map's del callback and the existing entry adopts new (see bucket_replace), in which case size is left unchanged.
| map | Pointer to an initialized map (borrowed). |
| new | Pair to insert (ownership transferred on success). |

