The strlcat function appends the NUL-terminated string SRC to the end of DST (but no more than size-1 characters will be in the destination).
strlcat函数把以NUL结尾的字符串src附加到dst的结尾(但是目标中的字符数目将不超过size - 1)。
Also, both functions guarantee that the destination will be NUL-terminated as long as the size is at least one (you can't put anything into a zero-length buffer).
此外,只要目标的大小至少为1,两个函数都保证目标将以NUL结尾(您不能将任何内容放入零长度的缓冲区)。
应用推荐