OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches
hash.c File Reference
#include <stdlib.h>
#include <string.h>
#include "hash.h"
Include dependency graph for hash.c:

Macros

#define UCHAR(x)   (((x) >= 'a' && (x) <= 'z') ? ((x)&~32) : (x))
 

Functions

int samestr (const char *s1, const char *s2)
 
unsigned int hash (const char *str)
 
HTtableHTcreate ()
 
int HTinsert (HTtable *ht, char *key, int data)
 
int HTfind (HTtable *ht, const char *key)
 
char * HTfindKey (HTtable *ht, const char *key)
 
void HTfree (HTtable *ht)
 

Macro Definition Documentation

◆ UCHAR

#define UCHAR (   x)    (((x) >= 'a' && (x) <= 'z') ? ((x)&~32) : (x))

Function Documentation

◆ hash()

unsigned int hash ( const char *  str)
Here is the caller graph for this function:

◆ HTcreate()

HTtable * HTcreate ( void  )

◆ HTfind()

int HTfind ( HTtable ht,
const char *  key 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ HTfindKey()

char * HTfindKey ( HTtable ht,
const char *  key 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ HTfree()

void HTfree ( HTtable ht)

◆ HTinsert()

int HTinsert ( HTtable ht,
char *  key,
int  data 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ samestr()

int samestr ( const char *  s1,
const char *  s2 
)
Here is the caller graph for this function: