diff options
author | Max Schumacher <maximilianbschumacher@gmail.com> | 2020-07-07 15:29:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-07 15:29:11 +0200 |
commit | dcb6c9c065840178815ff2420f055df167cf4fec (patch) | |
tree | 9aaa1f28636ae3d80e19f92bf7e9d64b46d63c80 | |
parent | 3afac7ea62daee3d90749057e62a4f06d58eb101 (diff) | |
parent | 83d35fb28ad661452b9a32699318096b1cce7b00 (diff) |
Merge pull request #3955 from muxueqz/patch-2
[C][zh-cn]Fix typo
-rw-r--r-- | zh-cn/c-cn.html.markdown | 2 |
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); |