MCPcopy Create free account
hub / github.com/OpenPrinting/cups / cgi_puts

Function cgi_puts

cgi-bin/template.c:643–664  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

641 */
642
643static void
644cgi_puts(const char *s, /* I - String to output */
645 FILE *out) /* I - Output file */
646{
647 while (*s)
648 {
649 if (*s == '<')
650 fputs("&lt;", out);
651 else if (*s == '>')
652 fputs("&gt;", out);
653 else if (*s == '\"')
654 fputs("&quot;", out);
655 else if (*s == '\'')
656 fputs("&#39;", out);
657 else if (*s == '&')
658 fputs("&amp;", out);
659 else
660 putc(*s, out);
661
662 s ++;
663 }
664}
665
666
667/*

Callers 1

cgi_copyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected