summaryrefslogtreecommitdiffhomepage
path: root/src/vector.c
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2003-05-29 20:47:52 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2003-05-29 20:47:52 +0000
commit42f9f37afcc97fae11d76bac07cc2dbcd37c4b6c (patch)
tree929fe8a45957932f2aa143ace66acbc1c88d620f /src/vector.c
parent4a377a712d5a17d1cd2c5e46f8c0873824a2448f (diff)
(vector_append): Renamed the vector_insert() function to more
accurately indicate that entries are appended to the end of the vector.
Diffstat (limited to 'src/vector.c')
-rw-r--r--src/vector.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vector.c b/src/vector.c
index 2f913de..7bb1d80 100644
--- a/src/vector.c
+++ b/src/vector.c
@@ -1,4 +1,4 @@
-/* $Id: vector.c,v 1.6 2002-05-24 04:45:32 rjkaes Exp $
+/* $Id: vector.c,v 1.7 2003-05-29 20:47:52 rjkaes Exp $
*
* A vector implementation. The vector can be of an arbitrary length, and
* the data for each entry is an lump of data (the size is stored in the
@@ -97,7 +97,7 @@ vector_delete(vector_t vector)
}
/*
- * Inserts an entry into the vector. The entry is an arbitrary
+ * Appends an entry into the vector. The entry is an arbitrary
* collection of bytes of _len_ octets. The data is copied into the
* vector, so the original data must be freed to avoid a memory leak.
* The "data" must be non-NULL and the "len" must be greater than zero.
@@ -106,7 +106,7 @@ vector_delete(vector_t vector)
* negative number if there are errors
*/
int
-vector_insert(vector_t vector, void *data, ssize_t len)
+vector_append(vector_t vector, void *data, ssize_t len)
{
struct vectorentry_s *entry;