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

Functions | |
| void | bucket_detach (void *bucket, void(*_)(void *)) |
| Detaches every pair from a single bucket chain without freeing them. | |
| void | buckets_detach (t_vector *buckets) |
| Detaches every pair from the bucket chains without freeing them. | |
| void bucket_detach | ( | void * | bucket, |
| void(*)(void *) | _ | ||
| ) |
Detaches every pair from a single bucket chain without freeing them.
Sets each node's content to NULL. Shaped to be used as a buckets_foreach() callback; the destructor parameter is unused.
| bucket | Address of the bucket slot (a t_list *) to detach (borrowed). |
| _ | Unused destructor parameter (required by the callback signature). |

| void buckets_detach | ( | t_vector * | buckets | ) |
Detaches every pair from the bucket chains without freeing them.
Sets each list node's content to NULL across all buckets, severing the link between the chains and their pairs. Used during a resize so the old chains can be freed while the pairs themselves are kept (they have been moved into the new bucket array).
| buckets | Pointer to the bucket vector to detach (borrowed). |

