commit a3eb9dbf8bf939f5d6f6d912e07403e3d710187c
parent 120ce9548aa72e7166ccf02d8f5469e2ce23db9e
Author: sin <sin@2f30.org>
Date: Tue, 6 May 2014 14:37:18 +0100
Rename vector_len() to vector_size() for consistency
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ds.h b/ds.h
@@ -30,7 +30,7 @@ struct vector *vector_init(void);
void vector_free(struct vector *);
size_t vector_add(struct vector *, void *);
void *vector_get(struct vector *, size_t);
-size_t vector_len(struct vector *);
+size_t vector_size(struct vector *);
void vector_walk(struct vector *, void (*)(struct vector *, void *));
#endif
diff --git a/vector.c b/vector.c
@@ -107,7 +107,7 @@ vector_get(struct vector *v, size_t i)
}
size_t
-vector_len(struct vector *v)
+vector_size(struct vector *v)
{
return v->ne;
}