| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Program Files (x86)/Windows Kits/10/Source/10.0.19041.0/ucrt/string/ |
Upload File : |
//
// wcsrev.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Defines _wcsrev(), which reverses a wide chraacter string in place. The
// pointer to the string is returned.
//
#include <string.h>
extern "C" wchar_t* __cdecl _wcsrev(wchar_t* const string)
{
// Find the end of the string:
wchar_t* right = string;
while (*right++) { }
right -= 2;
// Reverse the strong:
wchar_t* left = string;
while (left < right)
{
wchar_t const c = *left;
*left++ = *right;
*right-- = c;
}
return string;
}