xref: /original-bsd/lib/libc/db/hash/search.h (revision 4092c5cc)
1 /*-
2  * Copyright (c) 1990, 1993
3  *	The Regents of the University of California.  All rights reserved.
4  *
5  * This code is derived from software contributed to Berkeley by
6  * Margo Seltzer.
7  *
8  * %sccs.include.redist.c%
9  *
10  *	@(#)search.h	8.1 (Berkeley) 06/04/93
11  */
12 
13 /* Backward compatibility to hsearch interface. */
14 typedef struct entry {
15 	char *key;
16 	char *data;
17 } ENTRY;
18 
19 typedef enum {
20 	FIND, ENTER
21 } ACTION;
22 
23 int	 hcreate __P((unsigned int));
24 void	 hdestroy __P((void));
25 ENTRY	*hsearch __P((ENTRY, ACTION));
26