19 lines
297 B
C
19 lines
297 B
C
|
#ifndef HT_H_
|
||
|
#define HT_H_
|
||
|
|
||
|
#define TABLE_SIZE 100
|
||
|
|
||
|
typedef struct client {
|
||
|
int id;
|
||
|
char name[32];
|
||
|
//pthread_t thread;
|
||
|
} client;
|
||
|
|
||
|
unsigned int hash(char *name);
|
||
|
void hashtable_init();
|
||
|
void hashtable_print();
|
||
|
int hashtable_add(client *p);
|
||
|
client *hashtable_search(char *name);
|
||
|
|
||
|
#endif
|