Cub3D
 
Loading...
Searching...
No Matches
posvec.c File Reference
#include "libft.h"
#include <malloc.h>
#include "maze.h"
Include dependency graph for posvec.c:

Functions

t_posvecposvecnew (size_t size)
 Create a vector with an initial starting size.
 
int posvecpush (t_posvec *vec, t_pos2 data)
 Add a new element to the vector.
 
int posvecpop (t_posvec *vec, t_pos2 *pos)
 Pops the last element of the vector if not empty.
 
int posvecremove (t_posvec *vec, size_t index, t_pos2 *result)
 Removes the element at the specified index from the vector if found.
 
void posvecfree (t_posvec *vec)
 Free the vector.