Home | History | Annotate | Download | only in src

Lines Matching refs:siz

38  * Appends src to string dst of size siz (unlike strncat, siz is the
39 * full size of dst, not space left). At most siz-1 characters
40 * will be copied. Always NUL terminates (unless siz <= strlen(dst)).
41 * Returns strlen(src) + MIN(siz, strlen(initial dst)).
42 * If retval >= siz, truncation occurred.
45 strlcat(char *dst, const char *src, size_t siz)
50 size_t n = siz;
60 n = siz - dlen;
79 * Find length of string in dst (maxing out at siz).
81 size_t dlen = strnlen(dst, siz);
87 return dlen + strlcpy(dst + dlen, src, siz - dlen);