Dynarr 0.0.1
C dynamic array
|
Generic dynamic array for C.
Is an extension over vector.
Keeps containing data sequential, tracks amount of stored elements and grows/shrinks on demand.
Resize functionality is parametrized for flexability.
Has variety of common array operation, like append, insert, search, etc ... Vector API can seamlessly operate on dynarr_t *
.
Supports further extension.
Platforms | CI/CD | COVERAGE |
---|---|---|
Linux | ||
Windows |
sh sudo apt-get install gcc make automake autoconf autoconf-archive libtool \ check valgrind lcov
sh pacman -S curl git mingw-w64-ucrt-x86_64-gcc \ mingw-264-ucrt-x86_64-check \ autotools autoconf-archive lcov
Set up git newline \n
to \r\n
convertion (windows style): sh git config --global core.autocrlf input
sh git clone https://github.com/evjeesm/dynarr.git dynarr; cd dynarr; git submodule update --init --recursive;
sh ./autogen.sh && ./configure CFLAGS=<YOUR COMPILATION FLAGS> --prefix=</path/to/install/folder/>
sh make
sh make check make check-valgrind # optional memory check
sh make install
Link against libdynarr_static.a
or libdynarr.so
on linux.
If you on Windows platform link to libdynarr_static.lib
.
Requires standard math library, so remember to provide -lm
.
Requires linking with vector's libraries.