Rename String Manipulation/CharStringToWCharString.cpp to String Manipulation/String Conversion/CharStringToWCharString.cpp

This commit is contained in:
vxunderground
2022-07-14 22:15:40 -05:00
committed by GitHub
parent c9ec089ade
commit 06221cd78b
@@ -0,0 +1,12 @@
SIZE_T CharStringToWCharString(PWCHAR Destination, PCHAR Source, SIZE_T MaximumAllowed)
{
INT Length = (INT)MaximumAllowed;
while (--Length >= 0)
{
if (!(*Destination++ = *Source++))
return MaximumAllowed - Length - 1;
}
return MaximumAllowed - Length;
}