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

Functions

void buckets_swap (t_vector *buckets1, t_vector *buckets2)
 Swaps the contents of two bucket vectors.
 

Function Documentation

◆ buckets_swap()

void buckets_swap ( t_vector buckets1,
t_vector buckets2 
)

Swaps the contents of two bucket vectors.

Exchanges the two t_vector structures by value; no allocation occurs and no pair is moved in memory.

Parameters
buckets1First bucket vector (borrowed).
buckets2Second bucket vector (borrowed).
Here is the caller graph for this function: