Lines Matching refs:len
48 asr_buf_alloc(size_t len)
55 abp->asrb_allocated = len;
56 abp->asrb_data = asr_alloc(len);
58 if (abp->asrb_data == NULL && len != 0) {
63 if (len != 0)
77 asr_buf_grow(asr_buf_t *abp, size_t len)
83 if (abp->asrb_length + len + 1 > newlen)
84 newlen = abp->asrb_length + len + 1;
109 size_t len;
112 len = vsnprintf(NULL, 0, fmt, ap);
115 if (abp->asrb_length + len >= abp->asrb_allocated &&
116 asr_buf_grow(abp, len) != 0)
124 abp->asrb_length += len;
134 size_t len;
135 len = vsnprintf(NULL, 0, fmt, ap);
137 if (abp->asrb_length + len >= abp->asrb_allocated &&
138 asr_buf_grow(abp, len) != 0)
144 abp->asrb_length += len;
155 int len = (str == NULL) ? 0 : strlen(str);
156 int glen = len + 1;
163 abp->asrb_length += len;
174 int len = (buf == NULL) ? 0 : buf->asrb_length;
175 int glen = len + 1;
180 bcopy(buf->asrb_data, abp->asrb_data + abp->asrb_length, len);
181 abp->asrb_length += len;
192 int len = sz + 1;
193 if (abp->asrb_length + len >= abp->asrb_allocated &&
194 asr_buf_grow(abp, len) != 0)