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

Function cgi_puturi

cgi-bin/template.c:671–684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

669 */
670
671static void
672cgi_puturi(const char *s, /* I - String to output */
673 FILE *out) /* I - Output file */
674{
675 while (*s)
676 {
677 if (strchr("%@&+ <>#=", *s) || *s < ' ' || *s & 128)
678 fprintf(out, "%%%02X", *s & 255);
679 else
680 putc(*s, out);
681
682 s ++;
683 }
684}

Callers 1

cgi_copyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected