spkg: Add support package groundwork

Signed-off-by: Chloe M. <chloe@yiffware.org>
This commit is contained in:
2026-07-10 03:42:29 +00:00
parent 5e760907e1
commit e91183bd84
4 changed files with 74 additions and 1 deletions
+22
View File
@@ -0,0 +1,22 @@
/*
* Copyright (c) 2026, Chloe M., et al
* Provided under the BSD-3 clause.
*
* Description: Obtain length of string
* Author: Chloe M.
*/
#include <ptdef.h>
USIZE
RtlStrLen(const CHAR *String)
{
USIZE Length = 0;
if (String == NULL) {
return 0;
}
while (String[Length++] != '\0');
return Length;
}