hash.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "hash.h"

Go to the source code of this file.

Data Structures

struct  hash_element_
struct  hash_tab_

Defines

#define MAXINT   (((unsigned) ~ 0) >> 1)
#define MAXLEN   128

Typedefs

typedef struct hash_element_ BUCKET
typedef struct hash_tab_ HASH_TAB

Functions

HASH HashCreate (int size, int(*compare)(), unsigned(*hashfunc)())
void HashDestroy (HASH hash, void(*freeentry)())
void * HashFind (HASH hash, void *entry)
void * HashAdd (HASH hash, void *entry)
void * HashDelete (HASH hash, void *entry)
int HashList (HASH hash, int(*listentry)(), void *userdata)
void HastStats (HASH hash)


Define Documentation

#define MAXINT   (((unsigned) ~ 0) >> 1)

Definition at line 259 of file hash.c.

#define MAXLEN   128

Definition at line 260 of file hash.c.


Typedef Documentation

typedef struct hash_element_ BUCKET

typedef struct hash_tab_ HASH_TAB


Function Documentation

void* HashAdd ( HASH  hash,
void *  entry 
)

Definition at line 167 of file hash.c.

HASH HashCreate ( int  size,
int (*)()  compare,
unsigned (*)()  hashfunc 
)

Definition at line 47 of file hash.c.

void* HashDelete ( HASH  hash,
void *  entry 
)

Definition at line 203 of file hash.c.

void HashDestroy ( HASH  hash,
void (*)()  freeentry 
)

Definition at line 81 of file hash.c.

void* HashFind ( HASH  hash,
void *  entry 
)

Definition at line 111 of file hash.c.

int HashList ( HASH  hash,
int (*)()  listentry,
void *  userdata 
)

Definition at line 231 of file hash.c.

void HastStats ( HASH  hash  ) 

Definition at line 262 of file hash.c.


Generated on Thu Jun 25 10:29:48 2009 for CGNS by  doxygen 1.5.9