ccc/icons.h

21 lines
327 B
C
Raw Normal View History

#ifndef ICONS_H_
#define ICONS_H_
#include <stdbool.h>
#define MAX_NAME 30
#define TABLE_SIZE 100
typedef struct {
char name[MAX_NAME];
char *icon;
} icon;
unsigned int hash(char *name);
2024-11-05 00:02:35 +01:00
void hashtable_init(void);
void hashtable_print(void);
bool hashtable_add(icon *p);
icon *hashtable_search(char *name);
#endif