#include #define VEC_TYPE int #define VEC_NAME ints #include int main() { struct ints ints = ints_create(0); for (int i = 0; i < 1000000; ++i) { ints_append(&ints, i); } for (int i = 0; i < 1000000; ++i) { int *v = ints_at(&ints, i); assert(v && *v == i); } ints_destroy(&ints); }