Lines Matching refs:size
30 ** SM_STRLCPY -- size bounded string copy
33 ** If size > 0, copy up to size-1 characters from the nul terminated
34 ** string src to dst, nul terminating the result. If size == 0,
51 ** size -- size of destination buffer
58 sm_strlcpy(dst, src, size)
61 ssize_t size;
65 if (size-- <= 0)
67 for (i = 0; i < size && (dst[i] = src[i]) != 0; i++)
77 ** SM_STRLCAT -- size bounded string concatenation
80 ** If strlen(dst) < size, then append at most size - strlen(dst) - 1
96 ** size -- size of destination buffer
104 sm_strlcat(dst, src, size)
107 ssize_t size;
112 if (size < o + 1)
114 size -= o + 1;
115 for (i = 0, j = o; i < size && (dst[j] = src[i]) != 0; i++, j++)
156 /* current size of dst */
159 /* max. size is less than current? */
269 ** If size > 0, copy up to size-1 characters from the nul terminated
270 ** string src to dst, nul terminating the result. If size == 0,
292 ** size -- size of destination buffer
295 ** true if strlen(src) < size
302 sm_strlapp(dst, src, size)
305 ssize_t size;
309 if (size-- <= 0)
311 for (i = 0; i < size && ((*dst)[i] = src[i]) != '\0'; i++)