* Copy a string into an sbuf. */
| 592 | * Copy a string into an sbuf. |
| 593 | */ |
| 594 | int |
| 595 | sbuf_cpy(struct sbuf *s, const char *str) |
| 596 | { |
| 597 | |
| 598 | assert_sbuf_integrity(s); |
| 599 | assert_sbuf_state(s, 0); |
| 600 | |
| 601 | sbuf_clear(s); |
| 602 | return (sbuf_cat(s, str)); |
| 603 | } |
| 604 | |
| 605 | /* |
| 606 | * Format the given argument list and append the resulting string to an sbuf. |
no test coverage detected