Skip to content

Instantly share code, notes, and snippets.

View mygnu's full-sized avatar
I would rather be sailing or riding 🏍️

Harry Gill mygnu

I would rather be sailing or riding 🏍️
View GitHub Profile
@mygnu
mygnu / hash.c
Created April 16, 2014 12:53 — forked from tonious/hash.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;