This commit is contained in:
vxunderground
2022-09-10 13:20:38 -05:00
parent 8f5eca39d2
commit 86ca3658a5
143 changed files with 2396 additions and 1398 deletions
+33
View File
@@ -0,0 +1,33 @@
#include "StringManipulation.h"
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 StringTerminateStringAtCharW(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;
}