summaryrefslogtreecommitdiffhomepage
path: root/zh-cn
diff options
context:
space:
mode:
authorMax Schumacher <maximilianbschumacher@gmail.com>2020-07-07 15:29:11 +0200
committerGitHub <noreply@github.com>2020-07-07 15:29:11 +0200
commitdcb6c9c065840178815ff2420f055df167cf4fec (patch)
tree9aaa1f28636ae3d80e19f92bf7e9d64b46d63c80 /zh-cn
parent3afac7ea62daee3d90749057e62a4f06d58eb101 (diff)
parent83d35fb28ad661452b9a32699318096b1cce7b00 (diff)
Merge pull request #3955 from muxueqz/patch-2
[C][zh-cn]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);