用 C 语言写一个哈希表

这是一个使用 C 语言实现哈希表的简单示例:

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define TABLE_SIZE 10

typedef struct {
  char *key;
  char *value;
} HashEntry;

typedef struct {
  HashEntry *entry;
} HashTable;

HashTable *create_hash_table() {
  HashTable *table = (HashTable *)malloc(sizeo