해시테이블 썸네일형 리스트형 [C언어] simple hash table - test code #include #include #define MAX_HASH_BUCKET 10#define MAX_HASH_KEY MAX_HASH_BUCKET-1 #define HASH_KEY_GET(data) data % MAX_HASH_BUCKET;#define IS_SAME_NODE(a, b) ( a->data == b )/* * Return code. */typedef enum{ RET_OK = 0, RET_NOK} ret_code_t;/* * hash node */typedef struct _hash_node{ int data; struct _hash_node *next;} hash_node_t;/* * hash h.. 이전 1 다음