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

Function ap_rputs

include/http_protocol.h:487–510  ·  view source on GitHub ↗

* Output a string for the current request * @param str The string to output * @param r The current request * @return The number of bytes sent * @note ap_rputs may be implemented as macro or inline function */

Source from the content-addressed store, hash-verified

485 * @note ap_rputs may be implemented as macro or inline function
486 */
487static APR_INLINE int ap_rputs(const char *str, request_rec *r)
488{
489 apr_size_t len;
490
491 len = strlen(str);
492
493 for (;;) {
494 if (len <= INT_MAX) {
495 return ap_rwrite(str, (int)len, r);
496 }
497 else {
498 int rc;
499
500 rc = ap_rwrite(str, INT_MAX, r);
501 if (rc < 0) {
502 return rc;
503 }
504 else {
505 str += INT_MAX;
506 len -= INT_MAX;
507 }
508 }
509 }
510}
511
512/**
513 * Write an unspecified number of strings to the request

Callers 15

socache_rd_statusFunction · 0.85
socache_status_hookFunction · 0.85
socache_dbm_statusFunction · 0.85
socache_mc_statusFunction · 0.85
socache_shmcb_statusFunction · 0.85
socache_dc_statusFunction · 0.85
dav_error_response_tagFunction · 0.85
dav_method_optionsFunction · 0.85
dav_method_lockFunction · 0.85
ap_send_error_responseFunction · 0.85
proxy_status_hookFunction · 0.85
create_radioFunction · 0.85

Calls 1

ap_rwriteFunction · 0.85

Tested by

no test coverage detected