diff options
Diffstat (limited to 'src/lib/tsearch.h')
-rw-r--r-- | src/lib/tsearch.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/lib/tsearch.h b/src/lib/tsearch.h new file mode 100644 index 00000000..aa186495 --- /dev/null +++ b/src/lib/tsearch.h | |||
@@ -0,0 +1,38 @@ | |||
1 | /*- | ||
2 | * Written by J.T. Conklin <jtc@netbsd.org> | ||
3 | * Public domain. | ||
4 | * | ||
5 | * $NetBSD: search.h,v 1.12 1999/02/22 10:34:28 christos Exp $ | ||
6 | * $FreeBSD: release/9.0.0/include/search.h 105250 2002-10-16 14:29:23Z robert $ | ||
7 | */ | ||
8 | |||
9 | #ifndef _TSEARCH_H_ | ||
10 | #define _TSEARCH_H_ | ||
11 | |||
12 | #if defined(__cplusplus) | ||
13 | extern "C" { | ||
14 | #endif /* __cplusplus */ | ||
15 | |||
16 | |||
17 | void * | ||
18 | tdelete (const void * __restrict, | ||
19 | void ** __restrict, | ||
20 | int (*)(const void *, const void *)); | ||
21 | |||
22 | |||
23 | void * | ||
24 | tfind (const void *, | ||
25 | void * const *, | ||
26 | int (*)(const void *, const void *)); | ||
27 | |||
28 | |||
29 | void * | ||
30 | tsearch (const void *, | ||
31 | void **, | ||
32 | int (*)(const void *, const void *)); | ||
33 | |||
34 | #if defined(__cplusplus) | ||
35 | }; | ||
36 | #endif /* __cplusplus */ | ||
37 | |||
38 | #endif /* !_TSEARCH_H_ */ | ||