Tinyhash
This is a library containing multiple C implementations of hashmap.
Loading...
Searching...
No Matches
Classes | Typedefs | Functions
entry.h File Reference
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include "../common/hash.h"
#include "../common/key.h"
Include dependency graph for entry.h:
This graph shows which files directly or indirectly include this file:

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 Documentation

◆ th_sc_entry_t

typedef struct th_sc_entry_s th_sc_entry_t

Represents a separate chaining entry.

Function Documentation

◆ th_sc_entry_add()

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.

Parameters
root
key
value
Returns
true
false

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().

Here is the call graph for this function:
Here is the caller graph for this function: