vector icon indicating copy to clipboard operation
vector copied to clipboard

A pure C vector implementation

Results 12 vector issues
Sort by recently updated
recently updated
newest added

vector_remove() not exist in code , but in readme.md

int vector_move(Vector* destination, Vector* source) { assert(destination != NULL); assert(source != NULL); if (destination == NULL) return VECTOR_ERROR; if (source == NULL) return VECTOR_ERROR; *destination = *source; source->data = NULL;...

I'd like to confirm the understanding of the project is that, there is no implements for appending the vector data just like in STL, such as: vector1.insert(vector1.end(),vector2.begin(),vector2.end()). Please tell me...

This PR just makes a few changes mostly for convenience. - The functions under "PRIVATE" in `vector.h` are moved to the top of `vector.c` so they can actually stay private....

Due to `void *` based design, currently one can add whatever one wants to this vector. double's to vector of int's , bool's or whatever. Core helper to avoid this...

Basing a design on `void *` might not be very safe. One added safety measure might be to have a "safe twin" for every function trying to add a new...

Hey Peter. Thank you for this implementation! So far I encountered only one problem, not a big deal actually, but MSVC is not happy with pointer arithmetic and throws some...

First of all, thanks for such tiny and useful library! My changes are: 1. CMake build script mods: CMake required version increased, C99 standard support requirement added 2. All possible...