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

Function magic_rsl_printf

modules/metadata/mod_mime_magic.c:585–598  ·  view source on GitHub ↗

RSL hook for printf-type functions */

Source from the content-addressed store, hash-verified

583
584/* RSL hook for printf-type functions */
585static 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 */
601static int magic_rsl_putchar(request_rec *r, char c)

Callers 1

mprintFunction · 0.85

Calls 1

magic_rsl_addFunction · 0.85

Tested by

no test coverage detected