blob: 3806799dbe3b7fb35e3ed452b38c2ba63953c0eb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/*
* =====================================================================================
*
* Filename: hash.h
*
* Description: Prototypes and structs for the hashmap implementation
*
* Version: 1.0
* Created: 12/09/2022 07:35:39 PM
* Revision: none
* Compiler: gcc
*
* Author: Cara Salter (muirrum), cara@devcara.com
* Organization:
*
* =====================================================================================
*/
#include <stdlib.h>
#include <stdio.h>
typedef void* any_type;
typedef any_type hash_map;
hash_map map_init();
int map_add(hash_map m, int key, any_type value);
int map_get(hash_map m, int key, any_type* value);
int map_del(hash_map m, int key);
void map_free(hash_map m);
int map_len(hash_map m);
|