Lines Matching refs:src
36 ** string src to dst, nul terminating the result. If size == 0,
41 ** The result is strlen(src). You can detect truncation (not all
52 ** src -- source string
56 ** strlen(src)
60 sm_strlcpy(dst, src, size)
62 register const char *src;
68 return strlen(src);
69 for (i = 0; i < size && (dst[i] = src[i]) != 0; i++)
72 if (src[i] == '\0')
75 return i + strlen(src + i);
86 ** The result is the initial length of dst + the length of src.
97 ** src -- nul-terminated source string
102 ** (= initial length of dst + length of src)
106 sm_strlcat(dst, src, size)
108 register const char *src;
115 return o + strlen(src);
117 for (i = 0, j = o; i < size && (dst[j] = src[i]) != 0; i++, j++)
120 if (src[i] == '\0')
123 return j + strlen(src + i);
143 ** (= initial length of dst + length of src)
207 ** (= initial length of dst + length of src)
272 ** string src to dst, nul terminating the result. If size == 0,
293 ** src -- source string
297 ** true if strlen(src) < size
304 sm_strlapp(dst, src, size)
306 register const char *src;
313 for (i = 0; i < size && ((*dst)[i] = src[i]) != '\0'; i++)
316 if (src[i] == '\0')