File: hsearch.h

package info (click to toggle)
super 3.11.6-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 660 kB
  • ctags: 592
  • sloc: ansic: 7,338; sh: 183; makefile: 175
file content (25 lines) | stat: -rw-r--r-- 439 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef HSEARCH_H
#define HSEARCH_H

typedef struct entry {
    char           *key;
    char           *data;
}               ENTRY;

typedef enum {
    FIND,
    ENTER
}               ACTION;

typedef struct element {
    ENTRY           item;
    struct element *next;
}               ELEMENT;

extern ENTRY   *hsearch();
extern void     hdestroy();
extern int      hcreate();
extern void     hprint();
extern void     htext();

#endif