void initialize_vector(vector_t* v, size_t type) {
// TODO: implement
v->array=NULL;
//v->array = v; // you'll need to change this
// v->array.type
}
что тут написать?
v->array = v;
v->array.type=type;?
правильно?
/*Initializes all of the fields of a vector struct
*Arguments:
* - v: a pointer to a vector_t
* - type: a size_t indicating the size of the type of this vector's elements
*Return value: none
*/