10 lines
190 B
C
10 lines
190 B
C
#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;
|
|
} |