* Generic support for pretty-printing the header */
| 225 | * Generic support for pretty-printing the header |
| 226 | */ |
| 227 | static int get_one_line(const char *msg) |
| 228 | { |
| 229 | int ret = 0; |
| 230 | |
| 231 | for (;;) { |
| 232 | char c = *msg++; |
| 233 | if (!c) |
| 234 | break; |
| 235 | ret++; |
| 236 | if (c == '\n') |
| 237 | break; |
| 238 | } |
| 239 | return ret; |
| 240 | } |
| 241 | |
| 242 | /* High bit set, or ISO-2022-INT */ |
| 243 | static int non_ascii(int ch) |
no outgoing calls
no test coverage detected