lib: Fix '%X' formatting

This commit is contained in:
2026-10-27 23:15:27 +01:00
parent 74d53ca5dd
commit 254f005c4f
3 changed files with 15 additions and 2 deletions
+6
View File
@@ -5,6 +5,9 @@
[[__hot]]
size_t strlen(const char* str) {
if (!str)
return 0;
size_t result = 0;
while (*str++) {
result++;
@@ -14,6 +17,9 @@ size_t strlen(const char* str) {
[[__hot]]
size_t strnlen(const char* str, size_t len) {
if (!str || len == 0)
return 0;
size_t result = 0;
while (result < len && *str++) {
result++;