Files
odwetalibc/demo.c
T

24 lines
483 B
C

#include <odweta/list.h>
#include <odweta/vector.h>
#include <stdio.h>
int main() {
list_t* another_list = listInit();
listPush(another_list, CHAR, &(char){'x'});
listPush(another_list, INT, &(int){123});
listPush(another_list, FLOAT, &(float){3.14});
listPush(another_list, LIST, another_list);
vector_t* v = vectorInit(LIST);
vectorPush(v, another_list);
vectorPush(v, another_list);
vectorPrint(v);
vectorCleanup(v);
return 0;
}