src/container.c
// Push an item to a vector.
Push an item to a vector.
Push an item to a vector .
void vec_push(Vector *vec, void *item) {
    if (vec->len == vec->capacity) {
        vec->capacity *= 2;
        vec->data = realloc(vec->data, sizeof(void *) * vec->capacity);
    }
    vec->data[vec->len++] = item;
}
void vec_push ( Vector * vec , void * item ) { if ( vec -> len == vec -> capacity ) { vec -> capacity *= 2 ; vec -> data = realloc ( vec -> data , sizeof ( void * ) * vec -> capacity ) ; } vec -> data [ vec -> len ++ ] = item ; }
Push an item to a vector.
Push an item to a vector .