[refactor] Organize STRING

This commit is contained in:
2026-06-05 18:38:45 +08:00
Unverified
parent da03b301fb
commit 9ee88ef7b9
19 changed files with 124 additions and 51 deletions
+2 -7
View File
@@ -1,10 +1,5 @@
#pragma once
#include <types.h>
#define ASM asm volatile
static SUINT32 strlen(const char* arr) { // 获取string长度
SSINT32 i = 0;
while (arr[i++] != '\0');
return i - 1;
}
#include <string_utils.h>
#define ASM asm volatile