MCPcopy Index your code
hub / github.com/apache/httpd / ap_rvputs

Function ap_rvputs

server/protocol.c:2220–2251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2218}
2219
2220AP_DECLARE_NONSTD(int) ap_rvputs(request_rec *r, ...)
2221{
2222 va_list va;
2223 const char *s;
2224 apr_size_t len;
2225 apr_size_t written = 0;
2226
2227 if (r->connection->aborted)
2228 return -1;
2229
2230 /* ### TODO: if the total output is large, put all the strings
2231 * ### into a single brigade, rather than flushing each time we
2232 * ### fill the buffer
2233 */
2234 va_start(va, r);
2235 while (1) {
2236 s = va_arg(va, const char *);
2237 if (s == NULL)
2238 break;
2239
2240 len = strlen(s);
2241 if (buffer_output(r, s, len) != APR_SUCCESS) {
2242 va_end(va);
2243 return -1;
2244 }
2245
2246 written += len;
2247 }
2248 va_end(va);
2249
2250 return written;
2251}
2252
2253AP_DECLARE(int) ap_rflush(request_rec *r)
2254{

Callers 15

socache_dc_statusFunction · 0.85
dav_error_responseFunction · 0.85
proxy_status_hookFunction · 0.85
create_radioFunction · 0.85
balancer_display_pageFunction · 0.85
menu_headerFunction · 0.85
menu_commentFunction · 0.85
menu_defaultFunction · 0.85
menu_directiveFunction · 0.85
emit_preambleFunction · 0.85
emit_headFunction · 0.85
emit_linkFunction · 0.85

Calls 1

buffer_outputFunction · 0.85

Tested by

no test coverage detected