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

Function print_ippserver_string

tools/ipptool.c:3635–3652  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3633 */
3634
3635static void
3636print_ippserver_string(
3637 ipptool_test_t *data, /* I - Test data */
3638 const char *s, /* I - String to print */
3639 size_t len) /* I - Length of string */
3640{
3641 cupsFilePutChar(data->outfile, '\"');
3642 while (len > 0)
3643 {
3644 if (*s == '\"' || *s == '\\')
3645 cupsFilePutChar(data->outfile, '\\');
3646 cupsFilePutChar(data->outfile, *s);
3647
3648 s ++;
3649 len --;
3650 }
3651 cupsFilePutChar(data->outfile, '\"');
3652}
3653
3654
3655/*

Callers 1

print_ippserver_attrFunction · 0.85

Calls 1

cupsFilePutCharFunction · 0.85

Tested by

no test coverage detected