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

Functions

static bool grow_and_insert (t_vector *vector, size_t index, const void *item)
 
bool vector_push (t_vector *vector, const void *item)
 Appends one item at the end of the vector.
 
bool vector_pop (t_vector *vector, void *dst)
 Removes the last item from the vector.
 
bool vector_insert (t_vector *vector, size_t index, const void *item)
 Inserts one item at a specific index.
 
bool vector_remove (t_vector *vector, size_t index, void *dst)
 Removes one item at a specific index.
 

Function Documentation

◆ grow_and_insert()

static bool grow_and_insert ( t_vector vector,
size_t  index,
const void *  item 
)
static
Here is the call graph for this function:
Here is the caller graph for this function: