Vector
Creating a new vector
Vector* new_vec = vector_new();Writing data to the vector
vector_push(new_vec, (void*) "Hello world");Retrieving data
// index-based
// Since we know that "Hello world" will be our first value we can just search for the first index
char* hello_world = (char*)vector_get(new_vec, 0);
printf("%s", hello_world);Removing data
Freeing the vector
Last updated