File: hash.e

package info (click to toggle)
html-xml-utils 6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,620 kB
  • sloc: ansic: 10,027; sh: 2,135; lex: 189; yacc: 125; perl: 123; makefile: 122
file content (5 lines) | stat: -rw-r--r-- 182 bytes parent folder | download | duplicates (2)
1
2
3
4
5
 typedef struct entry {char *key; void *data;} ENTRY;
 typedef enum {FIND, ENTER} ACTION;
 int hcreate(size_t nel);
 void hdestroy(void);
 ENTRY *hsearch(ENTRY item, ACTION action);