RSL hook for printf-type functions */
| 583 | |
| 584 | /* RSL hook for printf-type functions */ |
| 585 | static int magic_rsl_printf(request_rec *r, char *str,...) |
| 586 | { |
| 587 | va_list ap; |
| 588 | |
| 589 | char buf[MAXMIMESTRING]; |
| 590 | |
| 591 | /* assemble the string into the buffer */ |
| 592 | va_start(ap, str); |
| 593 | apr_vsnprintf(buf, sizeof(buf), str, ap); |
| 594 | va_end(ap); |
| 595 | |
| 596 | /* add the buffer to the list */ |
| 597 | return magic_rsl_add(r, apr_pstrdup(r->pool, buf)); |
| 598 | } |
| 599 | |
| 600 | /* RSL hook for putchar-type functions */ |
| 601 | static int magic_rsl_putchar(request_rec *r, char c) |
no test coverage detected