#include #include void dump(zv_vector_t *self) { zv_vector_count_t length = zv_vector_length(self); printf("Vector length: %u\n", length); zv_vector_container_t *current = *self; size_t count = 0; while (count < length) { printf("Item %u: %s\n", count++, current->content.string); current = current->next; } puts("Dump end"); puts(""); } int main() { puts("ZivuOS vector test unit."); zv_universal_t first = { .string = "UwU" }; zv_universal_t second = { .string = "OwO" }; zv_vector_t *test = zv_vector_create(); dump(test); zv_vector_append(test, first); zv_vector_append(test, second); zv_vector_append(test, second); dump(test); return 0; }