ReactOS  0.4.13-dev-259-g5ca9c9c
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
14 extern "C" {
15 #endif
16 
17 #ifndef _CRT_ALGO_DEFINED
18 #define _CRT_ALGO_DEFINED
19 
21  void *
22  __cdecl
23  bsearch(
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
31  __cdecl
32  qsort(
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 
41  _CRTIMP
42  void *
43  __cdecl
44  _lfind(
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 
52  _CRTIMP
53  void *
54  __cdecl
55  _lsearch(
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 
65  _CRTIMP
66  void *
67  __cdecl
68  lfind(
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 
76  _CRTIMP
77  void *
78  __cdecl
79  lsearch(
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 _Inout_updates_bytes_(size)
Definition: no_sal2.h:287
_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 __cdecl
Definition: accygwin.h:79
#define _CRTIMP
Definition: crtdefs.h:60
_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_ _Ret_maybenull_ _In_ size_t _SizeOfElements
Definition: malloc.h:80
#define _Check_return_
Definition: no_sal2.h:13
_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 *))
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 *))
#define _Inout_
Definition: no_sal2.h:244
#define _In_reads_bytes_(size)
Definition: no_sal2.h:229
#define _In_
Definition: no_sal2.h:204
_Check_return_ void *__cdecl bsearch(_In_ const void *_Key, _In_reads_bytes_(_NumOfElements *_SizeOfElements) const 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 *))