all repos — hashtable @ d27cda5a11f115b23aafc5d9df84ecb3b1c8ca60

A very simple hashtable implementation in C

README.md

# hashtable
## Simple HashTable implementation 

Inserting Into the hastable can be done with:
`HashTableInsert(<key>, <value>, <hashtable pointer>);`

Accessing the hastable can be done with:
`HashTableGet(<key>, <hashtable pointer>);`

<br>
EXAMPLE USAGE:

```c
HashTable *ht = createHashTable(100);
int rc = HashTableInsert("name", "Prithu", ht);
if(rc)
   fprintf(stderr, "Cannot Insert the data into the Hashtable");

char *my_name = (char *)HashTableGet("name", ht);

FILE *fp = fopen("my_file.txt", "r");
HashTableInsert("file", fp, ht);

FILE *my_file = (FILE *)HashTableGet("file", ht);
```