dynarray icon indicating copy to clipboard operation
dynarray copied to clipboard

A generic dynamic array implementation in C.

Results 7 dynarray issues
Sort by recently updated
recently updated
newest added

How to print the array without explicitly making our own for loop? Can we make a separate function for that?

hello. this software has no license, although I really want to use it, a lack of license makes using this library impossible for some projects like mine. if you want...

Comments in the code suggest that `_dynarray_{get,set}` do bounds checking. In fact they do not, I must have forgot to add that. Bounds checking should be added.

enhancement
help wanted
good first issue

If `malloc` (or `realloc`) cannot allocate the requested memory, it will return `NULL`. Currently this library does not check for this condition. How should this be handled? Is it worth...

enhancement
help wanted
good first issue

During reallocation this implementation calls malloc and free to create a new buffer twice the size and to deallocate the old buffer. The function `realloc` can be more efficient because...

enhancement
help wanted
good first issue

_dynarray_resize no longer calls _dynarray_create or _dynarray_destroy. It simply calls realloc then updates capacity (as length and stride do not change).

https://github.com/eignnx/dynarray/blob/master/dynarray.h#L14-L19 This anonymous enum uses up some semi-common identifiers like `LENGTH` which may appear in application code that uses this library. The enum members should be renamed to something specific...

enhancement
help wanted
good first issue