* Append a character to an sbuf. */
| 724 | * Append a character to an sbuf. |
| 725 | */ |
| 726 | int |
| 727 | sbuf_putc(struct sbuf *s, int c) |
| 728 | { |
| 729 | |
| 730 | sbuf_put_byte(s, c); |
| 731 | if (s->s_error != 0) |
| 732 | return (-1); |
| 733 | return (0); |
| 734 | } |
| 735 | |
| 736 | /* |
| 737 | * Append a trailing newline to a non-empty sbuf, if one is not already |
no test coverage detected