REFACTOR: Fixed Arg 1 resize

This commit is contained in:
2026-09-23 21:33:30 -04:00
parent f51a03c476
commit 8a52f22b8a
5 changed files with 207 additions and 90 deletions
+2 -2
View File
@@ -27,7 +27,7 @@ int
is_valid(const Vec8_t* vec);
Vec8_t
create(const char* buf, const int len);
create(const char* buf, const size_t len);
Vec8_t
push_back(Vec8_t* vec, const char val);
@@ -59,7 +59,7 @@ Vec8_t
clear(const Vec8_t* vec);
char
at(const Vec8_t* vec, int idx);
at(const Vec8_t* vec, const size_t idx);
void
print_vec(const Vec8_t* vec);
+6 -5
View File
@@ -10,11 +10,12 @@
#define FAILURE 1
#define ERR_ALLOC_FAIL 20
#define ERR_BUF_NULL 21
#define ERR_BAD_TYPE 22
#define ERR_SIZE_ZERO 23
#define ERR_VECTOR_NULL 24
#define ERR_MAX_PASSED 25
#define ERR_OUT_OF_BOUNDS 26
#define ERR_SIZE_ZERO 22
#define ERR_VECTOR_NULL 23
#define ERR_MAX_PASSED 24
#define ERR_OUT_OF_BOUNDS 25
#define ERR_NULL 26
#define ERR_DOUBLE_BUF 27
extern const char* error_messages[];