blob: b73bedfa7cd12d754946f21388d76901c3683b34 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# DA — Simple & Stupid Dynamic Array
DA is a simple and easy-to-use single-header library for a dynamic array.
It’s not meant to be the worlds most efficent or optimal implementation;
it’s just stupid and simple. This means that it is perfect for 99% of
your dynamic array needs.
The library is documented in full in `da.h`, and you can easily grab it
and include it in your project with the following command:
```sh
wget 'https://git.sr.ht/~mango/da/blob/master/da.h'
```
Do note that the `da_foreach()` macro requires the `auto` keyword from C23. If
you wan’t to use an older standard of C, you can write the macro yourself to
take a type argument.
|