Files
vxunderground-VX-API/String Manipulation/CaplockString.cpp
T
2022-07-14 22:17:30 -05:00

26 lines
328 B
C++

PCHAR CaplockStringA(PCHAR Ptr)
{
PCHAR sv = Ptr;
while (*sv != '\0')
{
if (*sv >= 'a' && *sv <= 'z')
*sv = *sv - ('a' - 'A');
sv++;
}
return Ptr;
}
PWCHAR CaplockStringW(PWCHAR Ptr)
{
PWCHAR sv = Ptr;
while (*sv != '\0')
{
if (*sv >= 'a' && *sv <= 'z')
*sv = *sv - ('a' - 'A');
sv++;
}
return Ptr;
}