Home | History | Annotate | Download | only in string

Lines Matching refs:dst

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