list children in a table, not in a list
[protos/libecoli.git] / lib / ecoli_vec.h
index 782ed70..d45db36 100644 (file)
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
+/**
+ * Vectors of objects.
+ *
+ * The ec_vec API provide helpers to manipulate vectors of objects
+ * of any kind.
+ */
+
 #ifndef ECOLI_VEC_
 #define ECOLI_VEC_
 
@@ -34,6 +41,7 @@
 
 /* if NULL, default does nothing */
 typedef void (*ec_vec_elt_free_t)(void *ptr);
+
 /* if NULL, default is:
  * memcpy(dst, src, vec->elt_size)
  */
@@ -55,6 +63,8 @@ struct ec_vec *ec_vec_dup(const struct ec_vec *vec);
 struct ec_vec *ec_vec_ndup(const struct ec_vec *vec,
        size_t off, size_t len);
 void ec_vec_free(struct ec_vec *vec);
+
+__attribute__((pure))
 size_t ec_vec_len(const struct ec_vec *vec);
 
 #endif