21 if (maxlen <= 0) maxlen = 1;
26 v->
v = malloc(size_of_elem*maxlen);
27 if (!v->
v)
return NULL;
47 if (!(v->
v))
return NULL;
56 for (i = 0; i < v->
len; i++){
123 if (!delete_element_strings){
175 for (i = 0; i <
n; i++){
177 s2 =
MALLOC(
sizeof(
char)*(strlen(s)+1));
int Vector_get_length(Vector v)
void Vector_delete(Vector v)
int IntegerVector_get_length(Vector v)
void IntegerVector_delete(Vector v)
StringVector StringVector_part(StringVector v, int n, int *selected_list)
void StringVector_fprint1(FILE *fp, StringVector v)
Vector StringVector_reset(Vector v, char *content, int pos)
Vector StringVector_add(Vector v, char *s)
Vector Vector_assign(Vector v, void *stuff, int i)
void * Vector_get(Vector v, int i)
void(* deallocator)(void *v)
int * IntegerVector_get(Vector v, int i)
Vector IntegerVector_new(int len)
Vector Vector_add(Vector v, void *stuff)
void strdealloactor(void *v)
char ** StringVector_get(Vector v, int i)
Vector IntegerVector_add(Vector v, int i)
Vector Vector_reset(Vector v, void *stuff, int i)
Vector Vector_new(int maxlen, size_t size_of_elem, void(*deallocator)(void *v))
void intdealloactor(void *v)
void nulldealloactor(void *v)
Vector StringVector_new(int len, int delete_element_strings)
void StringVector_delete(Vector v)
void StringVector_fprint(FILE *fp, StringVector v)
int StringVector_get_length(Vector v)
Vector IntegerVector_reset(Vector v, int content, int pos)