hash.h File Reference

Go to the source code of this file.

Defines

#define hash_enter(hp, data)   !hash_item( hp, data, 1 )
#define hash_check(hp, data)   hash_item( hp, data, 0 )

Typedefs

typedef hashdata HASHDATA

Functions

hashhash_init (int datalen, const char *name)
int hash_item (struct hash *hp, HASHDATA **data, int enter)
void hash_done (struct hash *hp)


Define Documentation

#define hash_check ( hp,
data   )     hash_item( hp, data, 0 )

#define hash_enter ( hp,
data   )     !hash_item( hp, data, 1 )


Typedef Documentation

typedef struct hashdata HASHDATA


Function Documentation

void hash_done ( struct hash hp  ) 

free a hash table, given its handle.

struct hash* hash_init ( int  datalen,
const char *  name 
)

initialize a hash table, returning a handle

Parameters:
[in] datalen Length of records in this table
[in] name Name printed by hash_stat.

int hash_item ( struct hash hp,
HASHDATA **  data,
int  enter 
)


Generated on Thu Aug 17 15:54:32 2006 for MaJam by  doxygen 1.4.7