Lines Matching refs:dst
26 * Appends src to string dst of size dsize (unlike strncat, dsize is the
27 * full size of dst, not space left). At most dsize-1 characters
28 * will be copied. Always NUL terminates (unless dsize <= strlen(dst)).
29 * Returns strlen(src) + MIN(dsize, strlen(initial dst)).
33 strlcat(char * __restrict dst, const char * __restrict src, size_t dsize)
35 const char *odst = dst;
40 /* Find the end of dst and adjust bytes left but don't go past end. */
41 while (n-- != 0 && *dst != '\0')
42 dst++;
43 dlen = dst - odst;
50 *dst++ = *src;
55 *dst = '\0';