|
|
DataMuseum.dkPresents historical artifacts from the history of: RC9000 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about RC9000 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: @ T s
Length: 1658 (0x67a)
Types: TextFile
Notes: @(#)search.h 13.1 (RC International) 91/02/01 */
Names: »search.h«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦bbf173f5c⟧ »0004«
└─⟦this⟧ »./usr/include/search.h«
└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
└─⟦c6f24efe5⟧ »0007«
└─⟦this⟧ »comp3.0/bsd/usr/include/search.h«
/* @(#)search.h 13.1 (RC International) 91/02/01 */
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
/* The copyright notice above does not evidence any */
/* actual or intended publication of such source code. */
#ident "@(#)head:search.h 1.3.1.11"
#ifndef _SEARCH_H
#define _SEARCH_H
#ifndef _SIZE_T
#define _SIZE_T
typedef unsigned size_t;
#endif
#if defined(__STDC__)
typedef struct entry { char *key; void *data; } ENTRY;
typedef enum { FIND, ENTER } ACTION;
int hcreate(size_t);
void hdestroy(void);
ENTRY *hsearch(ENTRY, ACTION);
#else /* Not __STDC__ */
typedef struct entry { char *key, *data; } ENTRY;
typedef enum { FIND, ENTER } ACTION;
int hcreate();
void hdestroy();
ENTRY *hsearch();
#endif /* __STDC__ */
/* TSEARCH(3C) */
typedef enum { preorder, postorder, endorder, leaf } VISIT;
#if defined(__STDC__)
void *tdelete(void *, void **, int (*)(void *, void *));
void *tfind(void *, void **, int (*)(void *, void *));
void *tsearch(void *, void **, int (*)(void *, void *));
void twalk(void *, void (*)(void *, VISIT, int));
#else /* Not __STDC__ */
void *tdelete();
void *tfind();
void *tsearch();
void twalk();
#endif /* __STDC__ */
#if defined(__STDC__)
/* BSEARCH(3C) */
void *bsearch(void *, void *, size_t, size_t,
int (*)(void *, void *));
/* LSEARCH(3C) */
void *lfind(void *, void *, size_t *, size_t,
int (*)(void *, void *));
void *lsearch(void *, void *, size_t *, size_t,
int (*)(void *, void *));
#else /* Not __STDC__ */
void *bsearch();
void *lfind();
void *lsearch();
#endif /* __STDC__ */
#endif /* _SEARCH_H */