docs(string): fix typo

This commit is contained in:
ruanyf
2022-01-06 16:22:55 +08:00
parent 9e94ae401f
commit 7b8e2af161

View File

@@ -403,7 +403,7 @@ puts(s1); // "helloworld"
## strncat()
`strncat()`用于连接两个字符串,用法与`strncat()`完全一致,只是增加了第三个参数,指定最大添加的字符数。在添加过程中,一旦达到指定的字符数,或者在源字符串中遇到空字符`\0`,就不再添加了。它的原型定义在`string.h`头文件里面。
`strncat()`用于连接两个字符串,用法与`strcat()`完全一致,只是增加了第三个参数,指定最大添加的字符数。在添加过程中,一旦达到指定的字符数,或者在源字符串中遇到空字符`\0`,就不再添加了。它的原型定义在`string.h`头文件里面。
```c
char* strncat(