Lines Matching refs:len
56 strnsave(const char *str, int len)
58 char *sp = (char *) xmalloc(len + 1);
59 memmove(sp, str, len);
60 sp[len] = '\0';
165 _xstrlcpy(const char *filename, int lineno, char *dst, const char *src, size_t len)
167 xstrlcpy(char *dst, const char *src, size_t len)
170 if (len == 0)
172 if (strlcpy(dst, src, len) >= len)
192 _xstrlcat(const char *filename, int lineno, char *dst, const char *src, size_t len)
194 xstrlcat(char *dst, const char *src, size_t len)
197 if (len == 0)
199 if (strlcat(dst, src, len) >= len) {
200 /* strlcat does not null terminate if the size of src is equal to len. */