e91183bd84
Signed-off-by: Chloe M. <chloe@yiffware.org>
23 lines
344 B
C
23 lines
344 B
C
/*
|
|
* 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;
|
|
}
|