libds

simple data structures library and utility functions
git clone git://git.2f30.org/libds
Log | Files | Refs | LICENSE

commit a4d3814ea905fa02fc760ae9077690cb07e96374
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:
Mds.h | 2+-
Mvector.c | 2+-
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; }