hash.h

来自「C++的一个好库。。。现在很流行」· C头文件 代码 · 共 21 行

H
21
字号
/*
 * Copyright 1993, 1995 Christopher Seiwald.
 *
 * This file is part of Jam - see jam.c for Copyright information.
 */

/*
 * hash.h - simple in-memory hashing routines 
 */

typedef struct hashdata HASHDATA;

struct hash *	hashinit( int datalen, char *name );
int 		hashitem( struct hash *hp, HASHDATA **data, int enter );
void 		hashdone( struct hash *hp );
void        hashenumerate( struct hash *hp, void (*f)(void*,void*), void* data );
int         hash_free( struct hash *hp, HASHDATA *data);

# define	hashenter( hp, data ) (!hashitem( hp, data, !0 ))
# define	hashcheck( hp, data ) hashitem( hp, data, 0 )

⌨️ 快捷键说明

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