Skip to content
A tiny library for using easily HashMap, arraylist in the C.
C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example Update main.c Mar 9, 2019
source Update hashmap.c Mar 9, 2019
test Update hashmap.c Mar 9, 2019
LICENSE Initial commit Mar 8, 2019
README.md Update README.md Mar 9, 2019

README.md

HashMap C

A tiny library for using easily HashMap, arraylist in the C.

Functions

void HashInit(HashMap *array);
void HashAdd(HashMap *array,PairValue *value);
void HashAppend(HashMap *array,HashMap *append);
void HashFreeIndex(HashMap *array,size_t index);
void HashFree(HashMap *array);
int HashDeleteIndex(HashMap *array,size_t index);
void HashDelete(HashMap *array);
PairValue *HashGetIndex(HashMap *array,size_t index);
PairValue *HashGetWithKey(HashMap *array,void *key);
void *HashGetKey(HashMap *array,void *value);
PairValue *HashGetWithValue(HashMap *array,void *value);
void *HashGetValue(HashMap *array,void *key);
PairValue *HashGetEquals(HashMap *array,PairValue *pair);
PairValue *HashGetEqual(HashMap *array,void *key,void *value);

Includes

#include <stdlib.h>

Compile Example

Clone :

$ git clone https://github.com/BaseMax/HashMapC
$ cd HashMapC/

Build Example :

$ gcc example/main.c source/hashmap.c -o example/main
$ example/main
$ gcc source/hashmap.c -o source/hashmap -c -O3
$ gcc example/main.c source/hashmap -o example/main
$ example/main
You can’t perform that action at this time.