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