FACT++  1.0
SERVICE* dis_hash_service_exists ( char *  name)

Definition at line 2905 of file dis_old.c.

References dll_search(), HashFunction(), and MAX_HASH_ENTRIES.

Referenced by find_service().

2906 {
2907  int index;
2908  SERVICE *servp;
2909 
2910  index = HashFunction(name, MAX_HASH_ENTRIES);
2911  if( (servp = (SERVICE *) dll_search(
2912  (DLL *) Service_hash_table[index],
2913  name, strlen(name)+1)) )
2914  {
2915  return(servp);
2916  }
2917  return((SERVICE *)0);
2918 }
#define MAX_HASH_ENTRIES
Definition: dis_old.c:2856
static SERVICE * Service_hash_table[MAX_HASH_ENTRIES]
Definition: dis_old.c:2858
Definition: dim.h:530
Definition: dis.c:69
int HashFunction(char *name, int max)
Definition: hash.c:22
DLL * dll_search(DLL *head, char *data, int size)
Definition: dll.c:49

+ Here is the call graph for this function:

+ Here is the caller graph for this function: