Update and rename Stdio/StringTerminateStringAtChar.c to Stdio/StringTerminateStringAtChar/StringTerminateStringAtCharA.c

This commit is contained in:
vxunderground 2021-05-28 01:20:51 -05:00 committed by GitHub
parent fef2c23ded
commit 8b83339256
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 31 deletions

View File

@ -1,31 +0,0 @@
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;
}

View File

@ -0,0 +1,16 @@
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;
}