ReactOS 0.4.15-dev-7670-g69b08be
search.h
Go to the documentation of this file.
1
7#ifndef _INC_SEARCH
8#define _INC_SEARCH
9
10#include <crtdefs.h>
11#include <stddef.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17#ifndef _CRT_ALGO_DEFINED
18#define _CRT_ALGO_DEFINED
19
21 void *
24 _In_ const void *_Key,
25 _In_reads_bytes_(_NumOfElements * _SizeOfElements) const void *_Base,
26 _In_ size_t _NumOfElements,
27 _In_ size_t _SizeOfElements,
28 _In_ int(__cdecl *_PtFuncCompare)(const void *, const void *));
29
30 void
33 _Inout_updates_bytes_(_NumOfElements * _SizeOfElements) void *_Base,
34 _In_ size_t _NumOfElements,
35 _In_ size_t _SizeOfElements,
36 _In_ int(__cdecl *_PtFuncCompare)(const void *, const void *));
37
38#endif
39
42 void *
45 _In_ const void *_Key,
46 _In_reads_bytes_((*_NumOfElements) * _SizeOfElements) const void *_Base,
47 _Inout_ unsigned int *_NumOfElements,
48 _In_ unsigned int _SizeOfElements,
49 _In_ int(__cdecl *_PtFuncCompare)(const void *, const void *));
50
53 void *
56 _In_ const void *_Key,
57 _Inout_updates_bytes_((*_NumOfElements) * _SizeOfElements) void *_Base,
58 _Inout_ unsigned int *_NumOfElements,
59 _In_ unsigned int _SizeOfElements,
60 _In_ int(__cdecl *_PtFuncCompare)(const void *, const void *));
61
62#ifndef NO_OLDNAMES
63
66 void *
69 _In_ const void *_Key,
70 _In_reads_bytes_((*_NumOfElements) * _SizeOfElements) const void *_Base,
71 _Inout_ unsigned int *_NumOfElements,
72 _In_ unsigned int _SizeOfElements,
73 _In_ int(__cdecl *_PtFuncCompare)(const void *, const void *));
74
77 void *
80 _In_ const void *_Key,
81 _Inout_updates_bytes_((*_NumOfElements) * _SizeOfElements) void *_Base,
82 _Inout_ unsigned int *_NumOfElements,
83 _In_ unsigned int _SizeOfElements,
84 _In_ int(__cdecl *_PtFuncCompare)(const void *, const void *));
85
86#endif
87
88#ifdef __cplusplus
89}
90#endif
91
92#include <sec_api/search_s.h>
93
94#endif /*_INC_SEARCH */
#define __cdecl
Definition: accygwin.h:79
#define _CRTIMP
Definition: crtdefs.h:72
_Check_return_ _Ret_maybenull_ _In_ size_t _SizeOfElements
Definition: malloc.h:76
#define _In_reads_bytes_(size)
Definition: ms_sal.h:321
#define _Inout_
Definition: ms_sal.h:378
#define _Check_return_
Definition: ms_sal.h:557
#define _Inout_updates_bytes_(size)
Definition: ms_sal.h:399
#define _In_
Definition: ms_sal.h:308
void __cdecl qsort(_Inout_updates_bytes_(_NumOfElements *_SizeOfElements) void *_Base, _In_ size_t _NumOfElements, _In_ size_t _SizeOfElements, _In_ int(__cdecl *_PtFuncCompare)(const void *, const void *))
_Check_return_ _CRTIMP void *__cdecl _lfind(_In_ const void *_Key, _In_reads_bytes_((*_NumOfElements) *_SizeOfElements) const void *_Base, _Inout_ unsigned int *_NumOfElements, _In_ unsigned int _SizeOfElements, _In_ int(__cdecl *_PtFuncCompare)(const void *, const void *))
_Check_return_ _CRTIMP void *__cdecl _lsearch(_In_ const void *_Key, _Inout_updates_bytes_((*_NumOfElements) *_SizeOfElements) void *_Base, _Inout_ unsigned int *_NumOfElements, _In_ unsigned int _SizeOfElements, _In_ int(__cdecl *_PtFuncCompare)(const void *, const void *))
_Check_return_ _CRTIMP void *__cdecl lsearch(_In_ const void *_Key, _Inout_updates_bytes_((*_NumOfElements) *_SizeOfElements) void *_Base, _Inout_ unsigned int *_NumOfElements, _In_ unsigned int _SizeOfElements, _In_ int(__cdecl *_PtFuncCompare)(const void *, const void *))
#define lfind
Definition: tif_config.h:130
#define bsearch