libft
Loading...
Searching...
No Matches
vec_push.c File Reference
#include "vec.h"

Go to the source code of this file.

Functions

int vec_push (t_vec *dst, void *src)
 Push element to the end of the vector.
 

Function Documentation

◆ vec_push()

int vec_push ( t_vec dst,
void *  src 
)

Push element to the end of the vector.

Takes in a vector and a pointer to an element to be pushed to the end of the vector.

Parameters
dstt_vec*
srcvoid*
Returns
int -1 if malloc fails otherwise 1

Definition at line 17 of file vec_push.c.