summaryrefslogtreecommitdiffhomepage
path: root/zh-cn
diff options
context:
space:
mode:
authormuxueqz <zhangmingyuan240@gmail.com>2020-06-13 20:20:20 +0800
committerGitHub <noreply@github.com>2020-06-13 20:20:20 +0800
commit83d35fb28ad661452b9a32699318096b1cce7b00 (patch)
tree649a4a85d0cfdba72354c97764244d5578df7ae2 /zh-cn
parentef0480286342219c7a592926660018534f5af12a (diff)
Fix typo
Diffstat (limited to 'zh-cn')
-rw-r--r--zh-cn/c-cn.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/zh-cn/c-cn.html.markdown b/zh-cn/c-cn.html.markdown
index 8eecc56e..7286fa9f 100644
--- a/zh-cn/c-cn.html.markdown
+++ b/zh-cn/c-cn.html.markdown
@@ -128,7 +128,7 @@ printf("Enter the array size: "); // 询问用户数组长度
char buf[0x100];
fgets(buf, sizeof buf, stdin);
-// stroul 将字符串解析为无符号整数
+// strtoul 将字符串解析为无符号整数
size_t size = strtoul(buf, NULL, 10);
int var_length_array[size]; // 声明VLA
printf("sizeof array = %zu\n", sizeof var_length_array);