Lines Matching refs:dst
446 * Appends src to string dst of size siz (unlike strncat, siz is the
447 * full size of dst, not space left). At most siz-1 characters
448 * will be copied. Always NUL terminates (unless siz <= strlen(dst)).
449 * Returns strlen(src) + MIN(siz, strlen(initial dst)).
453 strlcat(char *dst, const char *src, size_t siz)
455 char *d = dst;
460 /* Find the end of dst and adjust bytes left but don't go past end */
463 dlen = d - dst;
481 * Copy src to string dst of size siz. At most siz-1 characters
486 strlcpy(char *dst, const char *src, size_t siz)
488 char *d = dst;
500 /* Not enough room in dst, add NUL and traverse rest of src */
503 *d = '\0'; /* NUL-terminate dst */