22 lines
360 B
C
22 lines
360 B
C
#include <odweta/vector.h>
|
|
#include <odweta/string.h>
|
|
|
|
int main() {
|
|
string_t *s = string_from("test string");
|
|
string_t *s2 = string_from("another test");
|
|
|
|
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;
|
|
}
|