Skip to content

Instantly share code, notes, and snippets.

View chamalis's full-sized avatar

Stelios chamalis

  • Wandering around Earth
View GitHub Profile
@chamalis
chamalis / hash.c
Created November 28, 2017 13:15 — forked from tonious/hash.c
A quick hashtable implementation in c.
#define _XOPEN_SOURCE 500 /* Enable certain library functions (strdup) on linux. See feature_test_macros(7) */
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
#include <string.h>
struct entry_s {
char *key;
char *value;