1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 pre { line-height: 125%; } td.linenos .normal { color: inher#ifndef CGIT_VECTOR_H #define CGIT_VECTOR_H #include <stdlib.h> struct vector { size_t size; size_t count; size_t alloc; void *data; }; #define VECTOR_INIT(type) {sizeof(type), 0, 0, NULL} int vector_push(struct vector *vec, const void *data, int gently); #endif /* CGIT_VECTOR_H */
#ifndef CGIT_VECTOR_H #define CGIT_VECTOR_H #include <stdlib.h> struct vector { size_t size; size_t count; size_t alloc; void *data; }; #define VECTOR_INIT(type) {sizeof(type), 0, 0, NULL} int vector_push(struct vector *vec, const void *data, int gently); #endif /* CGIT_VECTOR_H */