Tinyhash
This is a library containing multiple C implementations of hashmap.
Loading...
Searching...
No Matches
entry.h
Go to the documentation of this file.
1#ifndef __TINYHASH_SC_ENTRY_H__
2#define __TINYHASH_SC_ENTRY_H__
3
4#include <stdbool.h>
5#include <stdint.h>
6#include <stdlib.h>
7
8#include "../common/hash.h"
9#include "../common/key.h"
10
21
33
34#endif
bool th_sc_entry_add(th_sc_entry_t **root, th_key_t *key, th_any_t value)
Add an a separate chaining entry to the beginning of a linked list. Return true on success.
Definition entry.c:25
struct th_sc_entry_s th_sc_entry_t
Represents a separate chaining entry.
Represent an entry key.
Definition key.h:14
Represents a separate chaining entry.
Definition entry.h:15
struct th_sc_entry_s * previous
Definition entry.h:18
th_any_t value
Definition entry.h:17
th_key_t key
Definition entry.h:16
struct th_sc_entry_s * next
Definition entry.h:19
void * th_any_t
Represent any type of data.
Definition types.h:8