initial list.h commit
This commit is contained in:
@@ -1,16 +1,15 @@
|
||||
#include <odweta/vector.h>
|
||||
#include <odweta/list.h>
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
vector_t *v = vectorInit(VECTOR);
|
||||
list_t *l = listInit();
|
||||
|
||||
vector_t *floatv = vectorInit(FLOAT);
|
||||
listPush(l, FLOAT, &(float){3.14});
|
||||
listPush(l, CHAR, &(char){'x'});
|
||||
listPush(l, INT, &(int){123});
|
||||
|
||||
vectorPush(floatv, &(float){3.14});
|
||||
vectorPush(floatv, &(float){55.5});
|
||||
listPrint(l);
|
||||
|
||||
vectorPush(v, floatv);
|
||||
|
||||
vectorPrint(v);
|
||||
listCleanup(l);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user