DSA Hacking Club Library
Loading...
Searching...
No Matches
hashtable Struct Reference

The hash table structure. More...

#include <hashtable.h>

Public Attributes

void ** table
 Dynamic array of pointers to stored objects.
size_t size
 Number of buckets in the table.
get_key_func get_key
 Function to extract keys from objects.
const char *(* get_key )(const void *)

Detailed Description

The hash table structure.

Stores a dynamically allocated array of void* pointers, so it can handle any data type. The user must supply a function to extract string keys from the stored data.


The documentation for this struct was generated from the following files: