diff options
Diffstat (limited to 'src/vector.h')
-rw-r--r-- | src/vector.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/vector.h b/src/vector.h index cdba376..ef8f953 100644 --- a/src/vector.h +++ b/src/vector.h @@ -26,14 +26,14 @@ * vector. Sure, it's a pointer, but the struct is hidden in the C file. * So, just use the vector_t like it's a cookie. :) */ - typedef struct vector_s *vector_t; +typedef struct vector_s *vector_t; /* * vector_create() takes no arguments. * vector_delete() is self explanatory. */ - extern vector_t vector_create (void); - extern int vector_delete (vector_t vector); +extern vector_t vector_create (void); +extern int vector_delete (vector_t vector); /* * When you insert a piece of data into the vector, the data will be @@ -43,8 +43,8 @@ * Returns: negative on error * 0 upon successful insert. */ - extern int vector_append (vector_t vector, void *data, size_t len); - extern int vector_prepend (vector_t vector, void *data, size_t len); +extern int vector_append (vector_t vector, void *data, size_t len); +extern int vector_prepend (vector_t vector, void *data, size_t len); /* * A pointer to the data at position "pos" (zero based) is returned and the @@ -62,7 +62,7 @@ * Returns: NULL on error * valid pointer to data */ - extern void *vector_getentry (vector_t vector, size_t pos, size_t * size); +extern void *vector_getentry (vector_t vector, size_t pos, size_t * size); /* * Returns the number of enteries (or the length) of the vector. @@ -70,6 +70,6 @@ * Returns: negative if vector is not valid * positive length of vector otherwise */ - extern ssize_t vector_length (vector_t vector); +extern ssize_t vector_length (vector_t vector); -#endif /* _VECTOR_H */ +#endif /* _VECTOR_H */ |