strlcpy 中的 'l' 是什么意思?

What is the 'l' for in strlcpy?

strlcpy中的'l'代表什么?我敢肯定,在询问之后这将是非常明显的,但我似乎无法在任何地方挖掘出可靠的答案。

strlcpy 由 Todd C. Miller 和 Theo de Raadt(OpenBSD 项目)在 USENIX 1999 上介绍。

摘自论文集strlcpy and strlcat — Consistent, Safe, String Copy and Concatenation,摘要中写着:

The proposed replacement functions, strlcpy() and strlcat(), address these problems by presenting an API designed for safe string copies (see Figure 1 for function prototypes). Both functions guarantee NUL-termination, take as a length parameter the size of the string in bytes, and provide an easy way to detect truncation

因此很明显 l 代表 长度