Lines Matching refs:dst
458 * Appends src to string dst of size siz (unlike strncat, siz is the
459 * full size of dst, not space left). At most siz-1 characters
460 * will be copied. Always NUL terminates (unless siz <= strlen(dst)).
461 * Returns strlen(src) + MIN(siz, strlen(initial dst)).
465 strlcat(char *dst, const char *src, size_t siz)
467 char *d = dst;
472 /* Find the end of dst and adjust bytes left but don't go past end */
475 dlen = d - dst;
493 * Copy src to string dst of size siz. At most siz-1 characters
500 strlcpy(char *dst, const char *src, size_t siz)
502 char *d = dst;
514 /* Not enough room in dst, add NUL and traverse rest of src */
517 *d = '\0'; /* NUL-terminate dst */