diff options
| author | Lion Kortlepel <[email protected]> | 2026-02-01 16:22:14 +0000 |
|---|---|---|
| committer | Lion Kortlepel <[email protected]> | 2026-02-01 16:22:14 +0000 |
| commit | f3b0599ff94a5bf5e13dba78281b0a3c7078c6b2 (patch) | |
| tree | 26932d75abe3285331d5f33d9a68307210116b94 /examples | |
| parent | 48302d5ce9bbf54610a41418449be3879d218d5a (diff) | |
| download | vec-f3b0599ff94a5bf5e13dba78281b0a3c7078c6b2.tar.zst vec-f3b0599ff94a5bf5e13dba78281b0a3c7078c6b2.zip | |
feat!: breaking rename _clear to _freev2.0
this simply makes more sense, as _clear does not keep the capacity which
would be expected.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/simple.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/simple.c b/examples/simple.c index 74a8750..aa9c656 100644 --- a/examples/simple.c +++ b/examples/simple.c @@ -3,9 +3,11 @@ LS_VEC_INLINE(int, int_vec) int main(void) { + int v; int_vec vec; int_vec_init(&vec); int_vec_push(&vec, 12); - int_vec_clear(&vec); + int_vec_pop(&vec, &v); + int_vec_free(&vec); return 0; } |
