MCPcopy Create free account
hub / github.com/apache/httpd / dav_buffer_append

Function dav_buffer_append

modules/dav/main/util.c:152–160  ·  view source on GitHub ↗

append a string to the end of the buffer, adjust length */

Source from the content-addressed store, hash-verified

150
151/* append a string to the end of the buffer, adjust length */
152DAV_DECLARE(void) dav_buffer_append(apr_pool_t *p, dav_buffer *pbuf,
153 const char *str)
154{
155 apr_size_t len = strlen(str);
156
157 dav_check_bufsize(p, pbuf, len + 1);
158 memcpy(pbuf->buf + pbuf->cur_len, str, len + 1);
159 pbuf->cur_len += len;
160}
161
162/* place a string on the end of the buffer, do NOT adjust length */
163DAV_DECLARE(void) dav_buffer_place(apr_pool_t *p, dav_buffer *pbuf,

Callers 2

dav_lock_get_activelockFunction · 0.85

Calls 1

dav_check_bufsizeFunction · 0.85

Tested by

no test coverage detected