diff options
Diffstat (limited to 'vector.h')
-rw-r--r-- | vector.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/vector.h b/vector.h new file mode 100644 index 0000000..fb32da7 --- /dev/null +++ b/vector.h @@ -0,0 +1,13 @@ +#ifndef NQ_VECTOR_H +#define NQ_VECTOR_H + +#include <stddef.h> + +struct vector { + size_t alloc, count, elemsize, arrayoff; +}; + +void *vector_init(size_t alloc, size_t elemsize, size_t arrayoff); +void *vector_append(struct vector **vp); + +#endif |