Sparse 0.0.1
Sparse Array for C
Loading...
Searching...
No Matches
📘 Guide

🔨 Creating Sparse Array

In this section we'll discuss creation of the sparse array.
Based on Example file.

⚙️ With default options

A standard way to create dynarr_t is to call a macro wrapper dynarr_create, it passes default option values, so you dont have to provide them yourself.


⚙️ With custom options


⚙️ Without macro wrapper

You can avoid macro wrapper with default values if you know what you are doing.

⚙️ Allocate extended header


⿻ Clone an existing array


❌ Error handling


🧨 Deallocating Sparse Array

Prevent memory leaks by deallocation resources, when they not needed anymore!


⬆️ Extending Sparse Array

Follow same guidelines as for the Vector
Extending a vector