home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume10 / pcmail2 / part01 / main / hsearch.h < prev    next >
C/C++ Source or Header  |  1990-01-24  |  499b  |  31 lines

  1. /* hsearch.c --- PD simple implementation of System V hsearch(3c) routine */
  2.  
  3.  /*
  4.   * Original author: Arnold Robbins
  5.   * 
  6.   * Changes by me (WZV):
  7.   * 
  8.   * put this part of the original hsearch.c in a separate file
  9.   * 
  10.   * make the lookup and hashing algorithms case-insensitive
  11.   */
  12.  
  13. #include <stdio.h>
  14.  
  15. typedef struct entry {
  16.     char *key;
  17.     char *data;
  18.     } ENTRY;
  19.  
  20. typedef enum {
  21.     FIND,
  22.     ENTER
  23.     } ACTION;
  24.  
  25. typedef struct element {
  26.     ENTRY    item;
  27.     struct element *next;
  28.     } ELEMENT;
  29.  
  30. ENTRY *hsearch();
  31.