146374Sbostic /*- 246374Sbostic * Copyright (c) 1990 The Regents of the University of California. 346374Sbostic * 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*50997Sbostic * @(#)search.h 5.2 (Berkeley) 09/04/91 1146374Sbostic */ 1246374Sbostic 13*50997Sbostic /* Backward compatibility to hsearch interface. */ 14*50997Sbostic typedef struct entry { 15*50997Sbostic char *key; 16*50997Sbostic char *data; 1746374Sbostic } ENTRY; 1846374Sbostic 19*50997Sbostic typedef enum { 20*50997Sbostic FIND, ENTER 21*50997Sbostic } ACTION; 22*50997Sbostic 23*50997Sbostic int hcreate __P((unsigned int)); 24*50997Sbostic void hdestroy __P((void)); 25*50997Sbostic ENTRY *hsearch __P((ENTRY, ACTION)); 26