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

Function dav_buffer_init

modules/dav/main/util.c:144–149  ·  view source on GitHub ↗

initialize a buffer and copy the specified (null-term'd) string into it */

Source from the content-addressed store, hash-verified

142
143/* initialize a buffer and copy the specified (null-term'd) string into it */
144DAV_DECLARE(void) dav_buffer_init(apr_pool_t *p, dav_buffer *pbuf,
145 const char *str)
146{
147 dav_set_bufsize(p, pbuf, strlen(str));
148 memcpy(pbuf->buf, str, pbuf->cur_len + 1);
149}
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,

Callers 2

dav_fs_internal_walkFunction · 0.85

Calls 1

dav_set_bufsizeFunction · 0.85

Tested by

no test coverage detected