146374Sbostic /*- 2*61202Sbostic * Copyright (c) 1990, 1993 3*61202Sbostic * The Regents of the University of California. All rights reserved. 446374Sbostic * 546374Sbostic * This code is derived from software contributed to Berkeley by 646374Sbostic * Margo Seltzer. 746374Sbostic * 846374Sbostic * %sccs.include.redist.c% 946374Sbostic * 10*61202Sbostic * @(#)search.h 8.1 (Berkeley) 06/04/93 1146374Sbostic */ 1246374Sbostic 1350997Sbostic /* Backward compatibility to hsearch interface. */ 1450997Sbostic typedef struct entry { 1550997Sbostic char *key; 1650997Sbostic char *data; 1746374Sbostic } ENTRY; 1846374Sbostic 1950997Sbostic typedef enum { 2050997Sbostic FIND, ENTER 2150997Sbostic } ACTION; 2250997Sbostic 2350997Sbostic int hcreate __P((unsigned int)); 2450997Sbostic void hdestroy __P((void)); 2550997Sbostic ENTRY *hsearch __P((ENTRY, ACTION)); 26