| 3633 | */ |
| 3634 | |
| 3635 | static void |
| 3636 | print_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 | /* |
no test coverage detected