ReactOS 0.4.16-dev-959-g2ec3a19
wcscmp.cpp File Reference
#include <string.h>
Include dependency graph for wcscmp.cpp:

Go to the source code of this file.

Functions

int __cdecl wcscmp (wchar_t const *a, wchar_t const *b)
 

Function Documentation

◆ wcscmp()

int __cdecl wcscmp ( wchar_t const a,
wchar_t const b 
)

Definition at line 29 of file wcscmp.cpp.

30{
31 int result = 0;
32#pragma warning(suppress:__WARNING_POTENTIAL_BUFFER_OVERFLOW_NULLTERMINATED) // 26018
33 while ((result = (int)(*a - *b)) == 0 && *b)
34 {
35 ++a;
36 ++b;
37 }
38
39 return ((-result) < 0) - (result < 0); // (if positive) - (if negative) generates branchless code
40}
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
GLuint64EXT * result
Definition: glext.h:11304
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
#define a
Definition: ke_i.h:78
#define b
Definition: ke_i.h:79