20 lines
327 B
C
20 lines
327 B
C
#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);
|
|
void hashtable_init(void);
|
|
void hashtable_print(void);
|
|
bool hashtable_add(icon *p);
|
|
icon *hashtable_search(char *name);
|
|
|
|
#endif
|