-
Notifications
You must be signed in to change notification settings - Fork 0
/
100-main.c
35 lines (33 loc) · 817 Bytes
/
100-main.c
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
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include "hash_tables.h"
/**
* main - check the code
*
* Return: Always EXIT_SUCCESS.
*/
int main(void)
{
shash_table_t *ht;
ht = shash_table_create(1024);
shash_table_set(ht, "y", "0");
shash_table_print(ht);
shash_table_set(ht, "j", "1");
shash_table_print(ht);
shash_table_set(ht, "c", "2");
shash_table_print(ht);
shash_table_set(ht, "b", "3");
shash_table_print(ht);
shash_table_set(ht, "z", "4");
shash_table_print(ht);
shash_table_set(ht, "n", "5");
shash_table_print(ht);
shash_table_set(ht, "a", "6");
shash_table_print(ht);
shash_table_set(ht, "m", "7");
shash_table_print(ht);
shash_table_print_rev(ht);
shash_table_delete(ht);
return (EXIT_SUCCESS);
}