Add files via upload

This commit is contained in:
vxunderground 2021-05-27 11:54:58 -05:00 committed by GitHub
parent 0d375fb7c2
commit 242eee09e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,31 @@
PCHAR StringTerminateStringAtCharA(PCHAR String, INT Character)
{
DWORD Length = (DWORD)StringLengthA(String);
for (DWORD Index = 0; Index < Length; Index++)
{
if (String[Index] == Character)
{
String[Index] = '\0';
return String;
}
}
return NULL;
}
PWCHAR StringTerminateStringAtCharA(PWCHAR String, INT Character)
{
DWORD Length = (DWORD)StringLengthW(String);
for (DWORD Index = 0; Index < Length; Index++)
{
if (String[Index] == Character)
{
String[Index] = '\0';
return String;
}
}
return NULL;
}