403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Program Files (x86)/Windows Kits/10/Source/10.0.19041.0/ucrt/string/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Program Files (x86)/Windows Kits/10/Source/10.0.19041.0/ucrt/string//wcscmp.cpp
//
// wcscmp.cpp
//
//      Copyright (c) Microsoft Corporation.  All rights reserved.
//
// Defines wcscmp(), which compares two wide character strings, determining
// their ordinal order.
//
// Note that the comparison is performed with unsigned elements (wchar_t is
// unsigned in this implementation), so the null character (0) is less than
// all other characters.
//
// Returns:
//  * -1 if a  < b
//  *  0 if a == b
//  *  1 if a  > b
//
#include <string.h>



#if defined _M_X64 || defined _M_IX86 || defined _M_ARM || defined _M_ARM64
    #pragma warning(disable: 4163)
    #pragma function(wcscmp)
#endif



extern "C" int __cdecl wcscmp(wchar_t const* a, wchar_t const* b)
{
    int result = 0;
#pragma warning(suppress:__WARNING_POTENTIAL_BUFFER_OVERFLOW_NULLTERMINATED) // 26018
    while ((result = (int)(*a - *b)) == 0 && *b)
    {
        ++a;
        ++b;
    }

    return ((-result) < 0) - (result < 0); // (if positive) - (if negative) generates branchless code
}

Youez - 2016 - github.com/yon3zu
LinuXploit