this still does not work though

This commit is contained in:
Odweta
2024-02-06 22:07:39 +01:00
parent f9e820efbc
commit ee6f702751
+10 -4
View File
@@ -1,14 +1,20 @@
#include <odweta/vector.h>
#include <odweta/string.h>
int main() {
vector_t *v = vector_new(INT);
string_t *s = string_from("test string");
string_t *s2 = string_from("another test");
vector_push(v, &(int){1});
vector_push(v, &(int){2});
vector_push(v, &(int){3});
vector_t *v = vector_new(STRING);
vector_push(v, s);
vector_push(v, s2);
vector_print(v);
string_cleanup(s);
string_cleanup(s2);
vector_cleanup(v);
return 0;