C++ linker presentation

This commit is contained in:
2026-02-24 10:21:15 +01:00
parent 0fda0d75fb
commit 6f3d98f388
32 changed files with 788 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
#include <stdio.h>
#include "wrapper.h"
int main(void) {
void* vec;
vec_create(&vec);
vec_push(vec, 3.14);
vec_push(vec, 2.71);
vec_push(vec, 1.41);
printf("vector size: %d\n", vec_size(vec));
for (int i = 0; i < vec_size(vec); i++) {
printf(" [%d] = %.2f\n", i, vec_get(vec, i));
}
vec_destroy(vec);
return 0;
}