💾 Archived View for gmi.noulin.net › markdown › hashlist_README.md captured on 2023-07-10 at 18:18:22.

View Raw

More Information

-=-=-=-=-=-=-

# Sheepy
This is a sheepy package for [sheepy](https://spartatek.se/r/sheepy/file/README.md.html) and using [libsheepy](https://spartatek.se/r/libsheepy/file/README.md.html)

# Random access double linked lists

Hashlist holds double linked lists in a hashtable, each node in the list has a key, any node in the list is accessed using a key.
Node are accessed in O(1) as in hashtables.

The data can be stored in the list nodes to reduce the frequency of memory allocations.


# Usage

Install with spm: `spm install hashlist`

Include header file:
- `#include "shpPackages/hashlist/hashlist.h"`

Usage examples are on the top of the headers and in `main.c`.

Before running `main.c` install the hashfunctions with:

spm install hashfunctions