diff options
| author | Preston Pan <preston@nullring.xyz> | 2023-02-06 00:15:11 -0800 |
|---|---|---|
| committer | Preston Pan <preston@nullring.xyz> | 2023-02-06 00:15:11 -0800 |
| commit | 7254ba3d28a73f34ae7636ea15a1eeac9738d284 (patch) | |
| tree | 861021e5088b43ed7aa8c87146687a44ee69a0fb /vector.h | |
| parent | 99e168790cdda8ddff7af3a001498910c04dc890 (diff) | |
hide cursor; DESTDIR stuff
Diffstat (limited to 'vector.h')
| -rw-r--r-- | vector.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -4,12 +4,16 @@ typedef struct Vector { int mx; int my; } vector_t; + vector_t init_vector(int mx, int my); + typedef struct VectorP { vector_t* vectors; int length; } vectorp_t; + vectorp_t init_vectorp(vector_t* vectors, int length); + //removes a vector from vectorp vectorp_t remove_vector(vectorp_t vectorp, int index); vectorp_t remove_vectors(vectorp_t vectorp, int* indexes, int indexCount); @@ -17,5 +21,7 @@ typedef struct VectorPP { vectorp_t* vectorps; int length; } vectorpp_t; + vectorpp_t init_vectorpp(vectorp_t* vectorps, int length); + #endif |
