vault backup: 2026-01-23 16:41:34

This commit is contained in:
2026-01-23 16:41:34 +08:00
parent d3bcc29692
commit bb68a0323d
2 changed files with 12 additions and 5 deletions

View File

@@ -4,3 +4,10 @@ tags:
aliases: empty
日期: 2026/1/23
---
- 字符转数字要 `-'0'`
```c
char arr[10];
for(int i = 0;i < strlen(arr);i++)
num = num * 10 + arr[i] - '0';
```
-