DynamicMapSpellbook is a C library that makes dynamic maps much easier to use and manage. Instead of raw pointers and manually keeping track of size, and allocating memory, this library does all of that for you, and you can focus on the more important aspects of your program.
git clone https://github.com/loganjellis/DynamicMapSpellbook.git
cd DynamicMapSpellbook
cmake -S . -B build
cmake --build build
cmake --install build --prefix ./install
Note
Note that ./install is a placeholder install location for the library. Omitting the install location results in the library being installed in the operating system's default path.
list(APPEND CMAKE_PREFIX_PATH "/path/to/dynamic_map_spellbook/install")
find_package(DynamicMapSpellbook REQUIRED)
target_link_libraries(app PRIVATE DynamicMapSpellbook::dynamic_map_spellbook)
add_subdirectory(DynamicMapSpellbook)
target_link_libraries(app PRIVATE DynamicMapSpellbook::dynamic_map_spellbook)
For an example of using the library, refer to example.c
To view the library's documentation, click here.