hash.h

来自「利用c语言编写」· C头文件 代码 · 共 27 行

H
27
字号
#ifndef __HASH_H__#define __HASH_H__typedef struct _hashelem{  char             *name;  struct _hashelem *next;  struct _column   *col;  struct _bound    *bnd;  int               must_be_int;  int               index; /* for row and column name hash tables */} hashelem;typedef struct _hashstruct{  hashelem **table;  int        size;} hashstruct;hashstruct *create_hash_table(int size);void free_hash_table(hashstruct *ht);hashelem *findhash(const char *name, hashstruct *ht);hashelem *puthash(const char *name, hashstruct *ht);hashstruct *copy_hash_table(hashstruct *ht);#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?