initialize a buffer and copy the specified (null-term'd) string into it */
| 142 | |
| 143 | /* initialize a buffer and copy the specified (null-term'd) string into it */ |
| 144 | DAV_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 */ |
| 152 | DAV_DECLARE(void) dav_buffer_append(apr_pool_t *p, dav_buffer *pbuf, |
no test coverage detected