home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
misc
/
volume10
/
pcmail2
/
part01
/
main
/
hsearch.h
< prev
next >
Wrap
C/C++ Source or Header
|
1990-01-24
|
499b
|
31 lines
/* hsearch.c --- PD simple implementation of System V hsearch(3c) routine */
/*
* Original author: Arnold Robbins
*
* Changes by me (WZV):
*
* put this part of the original hsearch.c in a separate file
*
* make the lookup and hashing algorithms case-insensitive
*/
#include <stdio.h>
typedef struct entry {
char *key;
char *data;
} ENTRY;
typedef enum {
FIND,
ENTER
} ACTION;
typedef struct element {
ENTRY item;
struct element *next;
} ELEMENT;
ENTRY *hsearch();