Skip to content

namantam1/hashmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C/C++ CI

Hashmap Implementation in C Language

Features -

  1. Generic Data type support.
  2. Auto garbage collection while deleting the data from map.
  3. Better data structure management.

How to use -

  • Clone this project.
git clone https://github.com/namantam1/hashmap
cd hashmap
  • Run the example file with make or command line.
make && ./example
# or
gcc hashmap.c example.c -o example.out && ./example.out
  • To use this hashmap in another project import this libary as -
#include "hashmap/hashmap.h"

int main() {
    int data = 10;
    // create a new map
    map_ptr q = map_create(sizeof(int), "some_key", &data);

    // do you stuff
    // ...
    // ...

    // destroy the map if not in use to free the memory.
    map_destroy(&q);
}

Check Complete example

Issue

If you find any issue please don't hesitate to create an issue.

Any Contribution or suggestion are welcome.

License

This project is under MIT License.

See also

Releases

No releases published

Packages

No packages published