| 289 | } |
| 290 | |
| 291 | static int last_line_length(struct strbuf *sb) |
| 292 | { |
| 293 | int i; |
| 294 | |
| 295 | /* How many bytes are already used on the last line? */ |
| 296 | for (i = sb->len - 1; i >= 0; i--) |
| 297 | if (sb->buf[i] == '\n') |
| 298 | break; |
| 299 | return sb->len - (i + 1); |
| 300 | } |
| 301 | |
| 302 | static void add_rfc822_quoted(struct strbuf *out, const char *s, int len) |
| 303 | { |
no outgoing calls
no test coverage detected