* Format the given arguments and append the resulting string to an sbuf. */
| 709 | * Format the given arguments and append the resulting string to an sbuf. |
| 710 | */ |
| 711 | int |
| 712 | sbuf_printf(struct sbuf *s, const char *fmt, ...) |
| 713 | { |
| 714 | va_list ap; |
| 715 | int result; |
| 716 | |
| 717 | va_start(ap, fmt); |
| 718 | result = sbuf_vprintf(s, fmt, ap); |
| 719 | va_end(ap); |
| 720 | return (result); |
| 721 | } |
| 722 | |
| 723 | /* |
| 724 | * Append a character to an sbuf. |
no test coverage detected