ReactOS  0.4.15-dev-448-gd6c4411
sort.c
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS win32 subsystem
4  * PURPOSE:
5  * FILE: win32ss/gdi/eng/sort.c
6  * PROGRAMER: ReactOS Team
7  */
8 
9 #include <win32k.h>
10 
11 #define NDEBUG
12 #include <debug.h>
13 
14 /*
15  * @implemented
16  */
17 void
19 EngSort(IN OUT PBYTE Buf, IN ULONG ElemSize, IN ULONG ElemCount, IN SORTCOMP CompFunc)
20 {
21  qsort(Buf, ElemCount, ElemSize, CompFunc);
22 }
23 
24 /* EOF */
#define IN
Definition: typedefs.h:39
void APIENTRY EngSort(IN OUT PBYTE Buf, IN ULONG ElemSize, IN ULONG ElemCount, IN SORTCOMP CompFunc)
Definition: sort.c:19
int CompFunc(const void *p1, const void *p2)
Definition: rsym64.c:508
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 OUT
Definition: typedefs.h:40
unsigned int ULONG
Definition: retypes.h:1
BYTE * PBYTE
Definition: pedump.c:66
#define APIENTRY
Definition: api.h:79