summaryrefslogtreecommitdiff
path: root/rushs/evalexpr/vector/vector.h
diff options
context:
space:
mode:
authorMartial Simon <msimon_fr@hotmail.com>2025-10-11 22:19:00 +0200
committerMartial Simon <msimon_fr@hotmail.com>2025-10-11 22:19:00 +0200
commit73c2b00a10c5786ddeeacc915e233fd4df1c9321 (patch)
treee299ea4e8ac161b2b21170172ff8f182c1c3fe1a /rushs/evalexpr/vector/vector.h
parentc9b6b9a5ca082fe7c1b6f58d7713f785a9eb6a5c (diff)
fix: evalexpr & tinyprintf contenaient toute la piscine
Diffstat (limited to 'rushs/evalexpr/vector/vector.h')
-rw-r--r--rushs/evalexpr/vector/vector.h64
1 files changed, 0 insertions, 64 deletions
diff --git a/rushs/evalexpr/vector/vector.h b/rushs/evalexpr/vector/vector.h
deleted file mode 100644
index 5afada7..0000000
--- a/rushs/evalexpr/vector/vector.h
+++ /dev/null
@@ -1,64 +0,0 @@
-#ifndef VECTOR_H
-#define VECTOR_H
-
-#include <stddef.h>
-
-struct vector
-{
- // The number of elements in the vector
- size_t size;
- // The maximum number of elements in the vector
- size_t capacity;
- // The elements themselves
- int *data;
-};
-
-/*
-** Initialize the vector with `n` capacity.
-** Returns `NULL` if an error occured.
-*/
-struct vector *vector_init(size_t n);
-
-/*
-** Release the memory used by the vector.
-** Does nothing if `v` is `NULL`.
-*/
-void vector_destroy(struct vector *v);
-
-/*
-** Resize the vector to `n` capacity.
-** Returns `NULL` if an error occured.
-*/
-struct vector *vector_resize(struct vector *v, size_t n);
-
-/*
-** Append an element to the end of the vector. Expand the vector if needed.
-** Returns `NULL` if an error occured.
-*/
-struct vector *vector_append(struct vector *v, int elt);
-
-/*
-** Display the vector contents on `stdout`.
-** Displays `\n` if `v` is `NULL`.
-*/
-void vector_print(const struct vector *v);
-
-/*
-** Remove all the elements of the vector, and resize it to `n` capacity.
-** Returns `NULL` if an error occured.
-*/
-struct vector *vector_reset(struct vector *v, size_t n);
-
-/*
-** Insert `n` at the index `i`. Expand the vector if needed.
-** Returns `NULL` if an error occured.
-*/
-struct vector *vector_insert(struct vector *v, size_t i, int elt);
-
-/*
-** Remove the element at the index `i`.
-** Returns `NULL` if an error occured.
-*/
-struct vector *vector_remove(struct vector *v, size_t i);
-
-#endif /* !VECTOR_H */