Tinyhash
This is a library containing multiple C implementations of hashmap.
|
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include "../common/hash.h"
#include "../common/key.h"
Go to the source code of this file.
Classes | |
struct | th_sc_entry_s |
Represents a separate chaining entry. More... | |
Typedefs | |
typedef struct th_sc_entry_s | th_sc_entry_t |
Represents a separate chaining entry. | |
Functions | |
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. | |
typedef struct th_sc_entry_s th_sc_entry_t |
Represents a separate chaining entry.
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.
root | |
key | |
value |
Definition at line 25 of file entry.c.
References th_sc_entry_s::next, and th_sc_entry_new().
Referenced by th_sc_table_put_with_key().