Files
odwetalibc/demo.c
T

30 lines
519 B
C

#include <odweta/vector.h>
#include <odweta/file.h>
#include <stdio.h>
#include <string.h>
int main(int argc, char **argv) {
vector_t *vv = vectorInit(VECTOR);
vector_t *fv = vectorInit(FLOAT);
vectorPrint(vv);
vectorPush(fv, &(float){3.14});
vectorPush(fv, &(float){5.123});
vectorPush(vv, fv);
vectorPush(vv, fv);
vectorPush(vv, fv);
vectorPush(fv, &(float){156.1});
vectorPush(fv, &(float){6.124});
vectorInsertAt(vv, 1, fv);
vectorPrint(vv);
vectorCleanup(vv);
vectorCleanup(fv);
return 0;
}