implement the most important function

This commit is contained in:
suchmememanyskill
2021-07-13 16:30:34 +02:00
parent 3c640e23b1
commit 00fc334764
2 changed files with 11 additions and 3 deletions

View File

@@ -50,9 +50,6 @@ int vecAddElem(Vector_t* v, void* elem, u8 sz) {
u32 usedbytes = v->count * sz;
if (usedbytes >= v->capacity)
{
if (v->capacity > 5000) {
printf("uhhhh");
}
v->capacity *= 2;
void* buff = malloc(v->capacity);
if (!buff)